Re: let and binding have different ordering behavior

2009-02-12 Thread Phil Hagelberg
Mark Volkmann writes: >> Whoops, this caught me today. Whereas "let" evaluates its bindings >> sequentially, "binding" does not! Observe: >> >> (def a "a1") >> (def b "b1") >> >> (let [a "a2", b a] b) >> ;;=> "a2" >> >> (binding [a "a2", b a] b) >> ;;=> "a1" >> >> I wouldn't call this a bug, b

Re: let and binding have different ordering behavior

2009-02-12 Thread Mark Volkmann
On Thu, Feb 12, 2009 at 3:26 PM, Stuart Sierra wrote: > > Whoops, this caught me today. Whereas "let" evaluates its bindings > sequentially, "binding" does not! Observe: > > (def a "a1") > (def b "b1") > > (let [a "a2", b a] b) > ;;=> "a2" > > (binding [a "a2", b a] b) > ;;=> "a1" > > I wouldn'