2010/10/11 Ulises <ulises.cerv...@gmail.com>

> Hi,
>
> I'm sure this has been asked before (although I couldn't find anything
> other than this StackOverflow thread
> http://stackoverflow.com/questions/2320348/symbols-in-clojure) and, in
> addition to that thread, I have a clarifying question:
>
> Am I right if I say that when I do (def foo "1") I'm creating a var
> whose root binding is "1" and then binding the symbol foo to this var?
>

I guess one should use "mapping" instead of "binding". The var is mapped to
the symbol "foo" in the namespace *ns*.

I'm saying that because functions for inspecting namespaces are (ns-map),
etc.

HTH,

-- 
Laurent

-- 
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

Reply via email to