Thanks -- I deleted the post as soon as I wrote it but, I guess as 
Shakespeare said, "stupidity will out".  Or something along those lines.

But awesome about #=  that is exactly what i was looking for -- I was 
thinking of making my own #eval reader tag so that's nice to have.

Sorry again for the dumb question though.



On Thursday, March 19, 2015 at 1:46:02 PM UTC-4, Ambrose Bonnaire-Sergeant 
wrote:
>
> Not equivalent, macro expansion happens at compile time, unquotes are 
> evaluated at runtime.
>
> On Thu, Mar 19, 2015 at 11:59 AM, danl...@gmail.com <javascript:> <
> danl...@gmail.com <javascript:>> wrote:
>
>> I noticed the macro #'const in the im.chit/hara library: 
>> https://github.com/zcaudate/hara/blob/master/src/hara/expression/compile.clj#L3
>>
>> which is essentially:
>>
>> (defmacro const [body] 
>>   (eval body))
>>
>> (const (+ 1 1))
>>
>> ;; => 2
>>
>>
>> would it be equivalent (and idiomatic) in clojure to effect compile-time 
>> evaluation with quasi-quotation, instead?
>>
>> `~(+ 1 1)
>>
>> ;; => 2
>>
>> -- 
>> 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 unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to