Re: Unexpected behavior of 'if' with Boolean objects

2009-05-04 Thread Laurent PETIT
2009/5/4 Rich Hickey : > > > > On May 4, 7:14 am, Laurent PETIT wrote: >> Hi, >> >> 2009/5/4 Rich Hickey >> >> >> >> >> >> > On May 4, 1:53 am, Laurent PETIT wrote: >> > > 2009/5/4 Christophe Grand >> >> > > > Janico Greifenberg a écrit : >> > > > > Hi, >> >> > > > > I encountered unexpected b

Re: Unexpected behavior of 'if' with Boolean objects

2009-05-04 Thread Rich Hickey
On May 4, 7:14 am, Laurent PETIT wrote: > Hi, > > 2009/5/4 Rich Hickey > > > > > > > On May 4, 1:53 am, Laurent PETIT wrote: > > > 2009/5/4 Christophe Grand > > > > > Janico Greifenberg a écrit : > > > > > Hi, > > > > > > I encountered unexpected behavior of the 'if' form in clojure when >

Re: Unexpected behavior of 'if' with Boolean objects

2009-05-04 Thread Laurent PETIT
Hi, 2009/5/4 Rich Hickey > > > > On May 4, 1:53 am, Laurent PETIT wrote: > > 2009/5/4 Christophe Grand > > > > > > > > > > > > > Janico Greifenberg a écrit : > > > > Hi, > > > > > > I encountered unexpected behavior of the 'if' form in clojure when using > > > > instances of java.lang.Boolean

Re: Unexpected behavior of 'if' with Boolean objects

2009-05-04 Thread Rich Hickey
On May 4, 1:53 am, Laurent PETIT wrote: > 2009/5/4 Christophe Grand > > > > > > > Janico Greifenberg a écrit : > > > Hi, > > > > I encountered unexpected behavior of the 'if' form in clojure when using > > > instances of java.lang.Boolean as the condition. I wanted to convert > > > input strin

Re: Unexpected behavior of 'if' with Boolean objects

2009-05-03 Thread Laurent PETIT
2009/5/4 Christophe Grand > > Janico Greifenberg a écrit : > > Hi, > > > > I encountered unexpected behavior of the 'if' form in clojure when using > > instances of java.lang.Boolean as the condition. I wanted to convert > > input strings to booleans and used the constructor of the Boolean class

Re: Unexpected behavior of 'if' with Boolean objects

2009-05-03 Thread Christophe Grand
Janico Greifenberg a écrit : > Hi, > > I encountered unexpected behavior of the 'if' form in clojure when using > instances of java.lang.Boolean as the condition. I wanted to convert > input strings to booleans and used the constructor of the Boolean class > with the string parameter. However,

Re: Unexpected behavior of 'if' with Boolean objects

2009-05-03 Thread Laurent PETIT
2009/5/3 Janico Greifenberg > > Hi, > > I encountered unexpected behavior of the 'if' form in clojure when using > instances of java.lang.Boolean as the condition. I wanted to convert > input strings to booleans and used the constructor of the Boolean class > with the string parameter. However, w

Re: Unexpected behavior of 'if' with Boolean objects

2009-05-03 Thread Nick Vogel
In Java, you're supposed to use Boolean.valueOf whenever converting a string to a Boolean. The constructors are useless unless you for some reason need separate identities for Boolean objects. On Sun, May 3, 2009 at 11:56 AM, Janico Greifenberg wrote: > > Hi, > > I encountered unexpected behavi

Unexpected behavior of 'if' with Boolean objects

2009-05-03 Thread Janico Greifenberg
Hi, I encountered unexpected behavior of the 'if' form in clojure when using instances of java.lang.Boolean as the condition. I wanted to convert input strings to booleans and used the constructor of the Boolean class with the string parameter. However, when I pass these values as a condition