On 13 June 2016 at 03:29, Alan Thompson <clooj...@gmail.com> wrote:

> I would have expected the namespaces to avoid this kind of conflict. Why
> don't they?
>

All the vars in the clojure.core namespace are automatically imported into
a namespace when it's created. It's why you can write (+ 1 1) instead of
(clojure.core/+ 1 1).

In Clojure 1.9, a bunch of new vars have been added to clojure.core, and
these vars will be automatically imported into namespaces. If they happen
to conflict with vars defined in the namespace, you get a warning.

The solution is to use the :refer-clojure option in the ns macro to exclude
vars from clojure.core you know conflict with the vars in your namespace.
But since the Clojure 1.9 alphas are cutting edge, not every project has
updated their Clojure exclusions yet.

- James

-- 
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/d/optout.

Reply via email to