Hi Meikel,

I spent a few minutes trying to write a macro to do this that doesn't  
use eval. So far no good. Is it truly impossible, though? I have never  
seen a good discussion of "things that can be done only with eval".  
Any pointers?

Cheers,
Stuart

> Hi,
>
> On 13 Nov., 07:27, Larrytheliquid <[EMAIL PROTECTED]> wrote:
>> Is there a way to pass a vector to a function like let, rather than  
>> manually
>> typing in the brackets?
>
> let is not a function, but a special form (see: 
> http://clojure.org/special_forms) 
> .
> It is only possible via eval to achieve the desired effect.
>
> (def *bvec* '[x 1 y 2])
>
> (eval
>  `(let ~*bvec*
>     (+ ~'x ~'y)))
>
> And this is almost surely not what you want to do. eval is a strong
> code
> smell, if not stench.
>
> Sincerely
> Meikel
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to