I'm afraid not. Macro should be bound on a var. The clojure compile checks an attribute (isMacro) on a var to determine if it's a macro or function.
And Since a macro has no value, you cannot write it with some literals.

On Wed 07 Nov 2012 08:16:42 AM CST, Sean Neilan wrote:
Is there any way to write an anonymous macro in Clojure?

This post:
http://stackoverflow.com/questions/4074961/anonymous-macros-in-clojure
says it's possible with some hacks and in version 1.3 Clojure will
have some kind of support for this.

Thank you for your time.

-Sean

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

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