Am 30.09.2010 13:46, schrieb Nicolas Oury:
Note that you can't make readermacros yet. It's a supported in CL not
in Clojure but maybe in future versions how knows.
I meant, if you want to modify Clojure to allow a shorter notation for
partial application,
it is better to add a reader macro (directly in Clojure) than to
change evaluation semantic....
I am not sure it is a good idea anyway...
I brought this issue up in late 2008 and Rich decided against a reader
macro for that, as there already is the #() notation, which also has
advantages over partial, namely allowing you to call macros.
(map #(and true %) [1 2 3 nil 5]) ==> (1 2 3 nil 5)
but
(map (partial and true) [1 2 3 nil 5])
==> Can't take value of a macro: #'clojure.core/and
And this would also be the case for a currying reader macro.
--
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