Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Useful for abstracting utility libs? #2

Open
gfredericks opened this issue Nov 29, 2014 · 0 comments
Open

Useful for abstracting utility libs? #2

gfredericks opened this issue Nov 29, 2014 · 0 comments

Comments

@gfredericks
Copy link
Contributor

I've been thinking a bit about the friction I experience with utility libs (e.g., I never want to use more than one at a time, preferably the same one every time); I think it mainly has to do with the overhead of remembering all the namespaces involved, which increases drastically if you start using lots of small one-off utility libs.

One possible way of approaching that problem is to have a plugin that lets you declare all your utility functions in your project.clj and have them combined into a single special/magical namespace so that at least requires can be less noisy.

Which sounds a lot like what lein-shorthand does, with the crucial difference being you would want this special namespace to work the same in production.

I'm not sure if there's a decent way to do both of these things at the same time, and the name "lein-shorthand" doesn't really suggest the use case I'm talking about. But I thought I would bring it up anyways to see what others' thoughts are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant