On Thursday, October 25, 2012 2:39:33 PM UTC-4, larry google groups wrote: > > >No no this namespace is part of Clojure itself. > > How do you know this? Where is this documented? I find myself baffled as > to what is a dependency and what is not. > > Hi Larry,
Note that, concerning libraries, there's three separate but often similar names to be aware of: * the lib's artifact-id (you'll find it at the top of the lib's very own project.clj). * the lib's github project name (if it's hosted there) * the namespace(s) that the lib provides (specified in the lib's source file(s) in the `ns` macro) Threre's also the lib's group-id, which --- if different from the artifact-id --- is also noted at the top of a lib's project.clj file. You use a lib's group-id and artifact-id in your own project.clj when you specify dependencies (group-id is left out when it's the same as the artifact-id, which is common for many 3rd-party Clojure libs). You use a lib's namespace name(s) in your own source's `ns` macro to use that lib in your code. Some notes about contrib libs: * all have a group-id of "org.clojure", and * all have github project names like "foo.bar" (ex. "math.combinatorics"), under https://github.com/clojure * all have namespace names like "clojure.foo.bar" (ex. "clojure.math.combinatorics"). * they're hosted at maven central, not at clojars * you can find them all listed at http://dev.clojure.org/display/doc/Clojure+Contrib Some notes about 3rd-party Clojure libs: * many have a group-id the same as their artifact-id * most are hosted at github, and usually the github project name is the same as the artifact-id * most are available at Clojars via leiningen * many have a namespace like "my-proj.core" (Anyone: If there's any errors there, please let me know!) ---John -- 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
