Re: (= function) evaluation steps

2016-12-18 Thread Matching Socks
Another book that might be very helpful to you here is "Clojure programming", by Emerick, Carper, and Grand. It presumes a background in Ruby, Python, or Java, and makes several useful comparisons. But the best part is an uncommonly insightful chapter about collections. (There is another unc

Re: (= function) evaluation steps

2016-12-17 Thread Rafo Ufoun
Your explanation is more understandable, thank you ! It's easier to get the full picture about '=' now that I know there are one implementation of this function for "each" data type. (I say "each" because I think some multiple types can share the same implementation). Thank you again, you help

Re: (= function) evaluation steps

2016-12-17 Thread Alex Miller
On Saturday, December 17, 2016 at 3:54:07 PM UTC-6, Rafo Ufoun wrote: > > Is there a special check when the equality is asked on map ? > = does different things for different kinds of values, so in some sense yes. The implementation for maps (written in Java) is here: https://github.com/clojur

Re: (= function) evaluation steps

2016-12-17 Thread Rafo Ufoun
Is there a special check when the equality is asked on map ? I thought the evaluator evaluate all the expression the same way , by substituting each expression contained in the list to other evaluators. In the book, the author tells the substitution rule for function evaluation is responsible f