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
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
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