On Jan 26, 2009, at 6:39 PM, Mark Volkmann wrote:
I still have a question though. Why is it that when I use the ns macro to create a new namespace, the core symbols are still available even though I haven't done a refer on clojure.core?
That's one of the features of the ns macro. It handles the common case of wanting to refer to all of clojure.core by default. If you'd like less than all of clojure.core in your new namespace you can use a :refer-clojure clause customize what parts of clojure.core (if any) will be "referred" into the new namespace.
There is mention of :refer-clojure in (doc ns): "If :refer-clojure is not used, a default (refer 'clojure) is used."Where it says "refer 'clojure", it should say "refer 'clojure.core" (the name of that namespace changed since that doc string was most recently updated.)
--Steve
smime.p7s
Description: S/MIME cryptographic signature