Got it, thanks!

*--*
*Eduardo Aquiles Radanovitsck*
ThoughtWorks Brasil

On Tue, Feb 3, 2015 at 1:59 PM, Andy Fingerhut <[email protected]>
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 link for more details:
>
> http://clojuredocs.org/clojure.core/if
>
> Andy
>
> On Tue, Feb 3, 2015 at 3:16 AM, Eduardo Aquiles Affonso Radanovitsck <
> [email protected]> wrote:
>
>> 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) =>
>> ​
>> ​
>> 1
>> ​ ​
>> ​
>>
>> ​
>>
>>
>> *--*
>> *Eduardo Aquiles Radanovitsck*
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to [email protected]
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to