Mark,

I was hoping to some more concrete conventions. Your guidelines are
good, but are too general (applicable, I would say, to any programming
language)

An example for what I meant would be predicate functions whose name by
convention should end with ? (odd? even? etc.)
An example in Java would be JavaBeans specification.

An example of a confusion that I am talking about can be seen in Refs
and Atoms:
Ref: alter. commute, ref-set
Atom: swap!, reset!

I don't know whether these names had to be totally different, but why
is ! used in atom-related functions and not in ref functions.

OK, maybe now it is too late to cnahge such things in the clojure
core, but with a proper conventions, we could minimize that in new
libraries...


On Jul 19, 2:40 pm, Mark Volkmann <r.mark.volkm...@gmail.com> wrote:
> I documented some coding guidelines 
> athttp://java.ociweb.com/mark/clojure/ClojureCodingGuidelines.html. If
> anyone has ideas for additions/changes they would like to see, I'd
> gladly add them.
>
>
>
> On Sun, Jul 19, 2009 at 4:03 AM, Dragan Djuric<draga...@gmail.com> wrote:
>
> > Hi folks,
>
> > I am still in the process of getting to know Clojure (which is also my
> > first lisp). Are there any coding standards defined for Clojure?
> > Before someone cuts me off that Lisp is all about freedom and doing it
> > your way and everything, let me explain a bit.
> > I agree that people should have choice - so they have and will have
> > with or without coding standards. But, if there is not any coding
> > guide, a lots of these choices are going to be random, so the various
> > projects' code base will end up being PHP-ish. It also applies to
> > naming conventions, and it seems to me there is a lots of randomness
> > in that regard in Clojure libraries. What will happen if/when Clojure
> > becomes popular?
> > I am not talking about large specs - I am talking about a page or two
> > of the most common things, as a PDF doc or a Web page, Wiki or the
> > like.
> > Is there already something like this? If there is not - is it a good
> > idea to start a discussion on this issue here and create such guide?
>
> --
> R. Mark Volkmann
> Object Computing, Inc.

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