On Mar 23, 7:30 am, Mark Volkmann <r.mark.volkm...@gmail.com> wrote:
> I hadn't run across :: before. How do you determine the namespace of a
> keyword? I'd like to see the difference between
>
> (def k1 :a)  and  (def k2 ::b)
>
> Of course both create vars (k1 and k2) in the user namespace by
> default, but I want to understand the difference between :a and ::b.

Keyword namespaces work like symbol namespaces.  :a has no
namespace.  ::b expands to :user/b  You can also write :user/b
explicitly.

-Stuart Sierra
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to