On Jan 13, 2011, at 3:59 PM, Steve Miner wrote:

> On Jan 13, 2011, at 3:16 PM, Chas Emerick wrote:
> 
>> Just to clarify my position (it's funny to see one's self quoted out of the 
>> blue from an old thread!), I'm not at all suggesting "java naming 
>> conventions" when it comes to namespacing.
> 
> By the way, I didn't mean to put Chas on the spot.  Google led me to what 
> seemed like a good quote, and I thought he deserved the credit. Please take 
> that as a compliment.

I did, thanks. :-)

> One suggested compromise (from the old thread) was to use a short first 
> segment so that your namespace is technically multi-segment (good for Java 
> interop), but still short enough to be esthetically pleasing.  For example, 
> clj.foo instead of plain foo.  Seems like a good compromise to me.

That seems perfectly fine, as long as the prefix or suffix isn't "standard" -- 
otherwise, for purposes of runtime differentiation, such namespaces are 
functionally a single segment.  i.e. if the standard is clj.foo or baz.core, 
then someone else's clj.foo or baz.core will conflict just as well.

FWIW, I use "cemerick" as a prefix for all personal stuff (though I do little 
programming that is both personal and significant enough to warrant worrying 
about namespaces).  I assume that everyone has their preferred irc/IM/email 
handle; using it as a prefix seems reasonable to me, anyway.

If your name changes, then modifying some namespaces is surely not the most 
difficult part of that process!

- Chas

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