2011/9/26 ru <[email protected]>
>
> That's exactly means evaluation of argument that's contradict to
> mentioned above documentation!
>
> On 26 сен, 18:18, Tassilo Horn <[email protected]> wrote:
> > > Ok, this is working! But, what's the difference?
> >
> > Your code:
> >
> >   user=> (defmacro infix [e] `(let [[x# f# y#] ~e] (f# x# y#)))
> >
> > The ~e evaluates the given form, which looks like a function but is not.
> >
>
> In other words, your version of infix expands to approximately: (let [x_1
f_2 y_3] (5 + 4)] (f_2 x_1 y_3)) and the destructuring in "let" is what
causes the problem at runtime.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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