Re: bool with strange behaviour

2015-02-03 Thread Eduardo Aquiles Affonso Radanovitsck
Got it, thanks! *--* *Eduardo Aquiles Radanovitsck* ThoughtWorks Brasil On Tue, Feb 3, 2015 at 1:59 PM, Andy Fingerhut wrote: > Eduardo: > > This is due to the weirdness in Java, and Java's own documentation > recommends against using the Boolean class constructor. See the discussion > at this

Re: bool with strange behaviour

2015-02-03 Thread Andy Fingerhut
Eduardo: This is due to the weirdness in Java, and Java's own documentation recommends against using the Boolean class constructor. See the discussion at this link for more details: http://clojuredocs.org/clojure.core/if Andy On Tue, Feb 3, 2015 at 3:16 AM, Eduardo Aquiles Affonso Radanovitsck

bool with strange behaviour

2015-02-03 Thread Eduardo Aquiles Affonso Radanovitsck
Hello, we stepped into this on my team and we couldn't figure it out why the different behaviour of the first line. Could someone with deeper knowledge of the language explain us? (if (Boolean. false) 1 2) => 1 (if false 1 2) => 2 (if (Boolean/FALSE) 1 2) => 2 (if (= false (Boolean. false)) ​​ 1 2