> Unfortunately, this seems to break my consumer code. Although > mylibrary can see the functions from library1 and library2, consumers > of mylibrary cannot. So I end up manually having to go to all my > consumer files and changing them to: > (ns a-random-file-that-consumes-my-library > (:use library1) > (:use library2)) > > Blech. This makes it very difficult to refactor. What am I missing?
Clojure doesn't have a sys.modules dictionary. Use does a refer, which maps names to the current namespace, not to a global map. This will give your random-file the ability to control what's in its namespace. Considering that mylibrary.clj is a now a good candidate for refactoring, seems like some more work is in order in any case. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en