This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-14
Channels
- # admin-announcements (20)
- # beginners (8)
- # boot (90)
- # cider (19)
- # clojure (31)
- # clojure-czech (2)
- # clojure-italy (8)
- # clojure-japan (6)
- # clojure-russia (9)
- # clojurescript (165)
- # clojurex (3)
- # cursive (2)
- # events (3)
- # hoplon (2)
- # ldnclj (3)
- # luminus (2)
- # melbourne (2)
- # off-topic (8)
- # onyx (5)
- # reagent (2)
- # testing (2)
anyone: Let's say I have three namespaces A, B, and C. Let's say that I want all of A's publicly def'ed items to be brought into B. Let's also say that I want all of A's publicly def'ed items to be brought into C, but I want to do so by having C bring in B.
What combination of :require :refer, etc. do I need to use in my (ns) for B and C?
I've been reading up on namespaces all evening, but I'm still confused.
The context? A is a namespace with "core" functionality. However, there could also be namespaces X, Y, and Z with "core" functionality, and I want to make all of this available in B.
In C, I want to just be able to say "(require B)" and bring in all of the functionality of A, X, Y, and Z.
In C, I also want to be able to refer to this functionality simply by name. (e.g., "(do-thing)" instead of "(long.name.space.stuff/do-thing)"
@ajmagnifico: The only solution I know of is https://github.com/ztellman/potemkin
Nice find, @potetm ! That describes my problem pretty nicely. I'll have to try it out