We chose to keep a naming convention for constants mainly because we are mixing Java, Ruby and Clojure in the same system. We have to replicate constants between the different languages. We needed a common anchor somehow to keep track of things and be able to track down changes.
We typically use uppercase for shared constants and +name+ for the Clojure only stuff that may eventually be shared in the future. Of course in a pure Clojure system, this may be unnecessary given the immutability by default behaviour. Luc On Sat, 2009-02-21 at 22:55 -0500, Chouser wrote: > On Sat, Feb 21, 2009 at 9:05 PM, David Nolen <dnolen.li...@gmail.com> wrote: > > Thanks for the points. > > What I was thinking, was that for things like π, in Clojure (as in CL), > > perhaps it makes to sense to mark it like so: > > +pi+ > > Is 'pi' more constant than, say, 'rem'? One implements IFn, the other > doesn't, but neither changes. This distinction is even more blurred > when the value held by the Var is both a collection and fn, like a map > or vector. > > --Chouser > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---