On 28 March 2011 03:01, Terje Dahl <te...@terjedahl.no> wrote:
> So, would you say that namespaces are in fact a lot like Python
> packages - one pr file - and with the same flexibility of Python's
> import-statements:

Basically, yes. It's possible to put different namespaces in the same
file, but then the `require` and `use` functions wouldn't work.

> Ah, but as in Java, the "big official libraries" such as java itself
> starts with i.e. java.swing.  But if I was to publish a utilities
> library for swing, i would call it no.terjedahl.java.swing, so that it
> could be used by me or others as-is, without conflict with java.swing.

In theory this is a problem, but in practise it rarely is. Many
languages don't prefix their namespaces with domain names, such as
Ruby and Python, and they manage fine. Also, if your library doesn't
have a unique name (within the context of a language) it's confusing
for users and search engines, even if you can make the namespace
unique.

So in most cases, prefixing the domain on the namespace is
unnecessary, and it ties you to one domain. What happens if you move
domain, or someone else takes over the project? In my personal view,
the domain prefix looks rather unprofessional, though I guess that's a
matter of taste :)

- James

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