Well, logically the difference between a function and macro is just that 
the parameters will be evaluated in a function call but will not in a macro 
call. I suppose you can use anonymous function to achieve what you may want 
in a LET statement. 

And as SunNing said, Clojure will use meta tag ":macro true" of *Var* to 
identify a macro, but those var-look things defined within LET bindings are 
not *Vars*(they called locals?), I guess we are not able to make any 
'anonymous macros' there.

Maybe you can give us a more specific scenario of your requirement so that 
we can figure out how to make it work without 'anonymous macros'.

在 2012年11月7日星期三UTC+8上午11时12分24秒,Sean Neilan写道:
>
> I was hoping to write a macro inside of a let statement. The macro would 
> be returned from the let and keep closures to whatever was defined in the 
> let.
> Also, if possible, define multiple global macros inside of a let statement 
> so it's as if the let is returning multiple values.
>
>
> On Tue, Nov 6, 2012 at 9:07 PM, jaime <xieji...@gmail.com <javascript:>>wrote:
>
>> May I know in what circumstances would an anonymous macro be applied? - I 
>> just don't think there's a way to define anonymous macro but maybe we can 
>> make a workaround by manipulating the macro syntax...
>>
>> 在 2012年11月7日星期三UTC+8上午8时17分37秒,Sean Neilan写道:
>>
>>> Is there any way to write an anonymous macro in Clojure?
>>>
>>> This post:
>>> http://stackoverflow.com/**questions/4074961/anonymous-**
>>> macros-in-clojure<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 clo...@googlegroups.com<javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> 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