On Sun, 19 Sep 2010 23:07:55 +0200 Meikel Brandmeyer <[email protected]> wrote:
> Hi, > > Am 19.09.2010 um 22:59 schrieb ataggart: > > > Also note that the namespace portion of a keyword does not get > > resolved against the current aliases. E.g., > > user=> (require '[clojure.java.io :as io]) > > nil > > user=> (= :io/foo :clojure.java.io/foo) > > false > > It does with ::. > > user=> (= ::io/foo :clojure.java.io/foo) > true > > Sincerely > Meikel > Ah! I did not know it also did that. I always thought of it as "stick the current ns on this keyword", rather than "resolve the namespace of this keyword using normal resolution rules". Interesting! So then it seems correct to say that unless you explicitly trigger namespace resolution with ::, the namespace of a keyword is unrelated to the aliases in the environment. I think that's pretty much what I wanted to know, thanks! -Kyle -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
