Hi,

I think def should support docstrings, as ^{:doc "foo"} is 8
characters longer then "foo" - not to mention consistency across
definers as well as readability. Therefore, I created a ticket and
patch at 
http://www.assembla.com/spaces/clojure/tickets/280-def-should-support-an-optional-doc-string
and would like to hear some feedback.

This issue also made me think about special operators in general.
While obviously necessary for bootstrapping a language, I would love a
clojure without any (visible for the programmer) special operators at
all, such that even def, . etc. could be redefined if necessary -
whether or not this really is a good idea in situation x is another
discussion, but I don't really like the idea of def being
fundamentally different than defn in its nature.
I'm sure there would be ways to realize this, the simplest but ugliest
solution would be a rename of def to say
__internal_bootstrapping_def_dont_ever_use_this and defining def as
macro on top of it.

What do you think?

Cheers,
Benjamin

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