Can anyone explain this change?
(clojure-version) = 1.2.0
(let [x 8.9] (identical? x x)) = true
Compared to:
(clojure-version) = 1.4.0
(let [x 8.9] (identical? x x)) = false
Thanks.
David Sletten
--
You received this message because you are subscribed to the Google
Groups
On Sat May 5 14:53 2012, David Sletten wrote:
Can anyone explain this change?
(clojure-version) = 1.2.0
(let [x 8.9] (identical? x x)) = true
Compared to:
(clojure-version) = 1.4.0
(let [x 8.9] (identical? x x)) = false
Well, this is certainly an interesting phenomenon. What is
On May 5, 2012, at 3:06 PM, Daniel Solano Gómez wrote:
On Sat May 5 14:53 2012, David Sletten wrote:
Can anyone explain this change?
(clojure-version) = 1.2.0
(let [x 8.9] (identical? x x)) = true
Compared to:
(clojure-version) = 1.4.0
(let [x 8.9] (identical? x x)) = false
Well,
On Sat May 5 16:43 2012, David Sletten wrote:
Thanks for your response Daniel. You explain WHAT is apparently
happening here. However, I am still struggling to understand WHY this
is the new behavior.
Yes, this is indeed a valid question. I think the answer is that this
particular behaviour
Fantastic Daniel. Your thorough analysis has cleared up my confusion. I see now
that Java is partly to blame for this idiosyncratic behavior.
Furthermore, I agree that this is a relatively unlikely use of 'identical?'.
Considering all of the usual concerns when comparing floating-point numbers,