1) "use" and "require" differ in that use does what require does,
loads a library, but it also refers to the symbols in that lib in the
current namespace. So essentially if you want to use
clojure.contrib.def/defvar, if you (require 'clojure.contrib.def), you
would have to say (clojure.contrib.def/defvar ...), whereas if you did
(use 'clojure.contrib.def), you could then do (defvar ...)

2) dots separate portions of a namespace. they are the same as how
dots separate java packages. Slashes separate the namespace and the
symbol name when you refer to symbols. they are not included in the
name of a namespace (and can't be).

3) yes namespaces can be nested. that's the purpose of the dots, to
separate levels of nesting.
--~--~---------~--~----~------------~-------~--~----~
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