I can confirm this behavior. It's not the fault of the `ns` macro, however. This works just fine:
user=> (ns ^{:doc "This is foo"} foo) nil foo=> (in-ns 'user) #<Namespace user> user=> (meta (the-ns 'foo)) {:doc "This is foo"} AOT-compilation appears to be the culprit (as usual). This has been known for a long time, see CLJ-130, which I just updated. [CLJ-130]: http://dev.clojure.org/jira/browse/CLJ-130 -S On Saturday, July 20, 2013 8:50:18 AM UTC-4, Alexander Yakushev wrote: > > Example: > > user=> (meta (find-ns 'clojure.set)) > nil > user=> (meta (find-ns 'clojure.string)) > nil > user=> (meta (find-ns 'clojure.core)) > {:doc "Fundamental library of the Clojure language"} > > clojure.core is the only namespace that has metadata. Apparently because > it has metadata set differently > https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L6158, > > so I blame *ns *macro. > > I tested this with clojure 1.2-1.5, so it is not a regression, and unless > I'm doing something wrong, this was broken from the beginning. > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.