Hi,

(= (Boolean. false) false) ;=> true
>

now, that is really weird.  By all means (at least those, I can come up 
with ;-) it looks like false and (Boolean. false) are the same:

user=> (Boolean. false)
false
user=> (type (Boolean. false))
java.lang.Boolean
user=> (type false)
java.lang.Boolean
user=> (hash false)
1237
user=> (hash (Boolean. false))
1237
user=> (.compareTo (Boolean. false) false)
0

It's just when tested for truthiness that they differ.  While I could 
understand the argument that (Boolean. false) is an object and thus not 
false, it indeed smells fishy.

Regards,
Stefan

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to