Staying Out of Trouble
There is nothing terribly complicated about the namespace. Each namespace is just a big name/value lookup table which itself has a name. Keep in mind that there’s no hierarchy of namespaces. Each namespace has a name and somewhere behind the scenes Clojure maintains a mapping between the namespace name, perhaps clojure.core or maybe clojure.core.data, and the actual namespace. But as far as Clojure is concerned there is no more of a relationship between clojure.core.data and clojure.core than there is between clojure.core and blottsbooks.pricing. In particular, Clojure does not look at clojure.core.data as somehow under clojure.core. You can call your namespace whatever you want, and names like clojure.core and clojure.core.data ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access