Hello Joshua,

I don't think there is an official standard in Clojure, at least not
yet. For a source of inspiration, you may be interested in this
thread, in case you haven't found it yourself yet:

http://groups.google.com/group/clojure-dev/browse_thread/thread/d090b5599909497c

Personally, I prefer to annotate functions that have specific meaning
(like being a filter function used in templates, or a widget that
spits out HTML) with a tag that explicitely states what they are (be
it metadata in Clojure, or a decorator in Python which sets a specific
instance variable on the function object) so functions of a kind can
be programmatically queried at runtime (e.g., "give me all widgets in
this namespace").

Regarding tests, in the Clojure code I've seen so far, people haven't
used any specific notation, probably since tests are usually split off
from the rest of the source anyway.

Actually I had to smirk while reading your post, because only a few
weeks ago I browsed your fnparse project's git repository out of
interest. Looking at your "renaming" branch where you started adding
underscores to the most important rule building functions, I just
thought "what the heck is he doing here, and why?".

So, generally I find _underscore_ naming to be less readable,
especially when these names are being used regularly throughout the
code, and avoid it myself. (Unless it is forced by language
conventions, like __init__ and __repr__ etc. in Python.)

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