Re: boolean problem

2014-04-17 Thread Michael Gardner
On Apr 17, 2014, at 07:38 , Tassilo Horn wrote: > Michael Gardner writes: > >>> And now you have an if without then which will give you another >>> exception. >> >> Not true. It's more common to use 'when', but single-branch ifs are >> perfectly fine. > > Yes, but that was a zero-branch if, a

Re: boolean problem

2014-04-17 Thread Tassilo Horn
Michael Gardner writes: >> And now you have an if without then which will give you another >> exception. > > Not true. It's more common to use 'when', but single-branch ifs are > perfectly fine. Yes, but that was a zero-branch if, and that's not ok. Bye, Tassilo -- You received this message b

Re: boolean problem

2014-04-17 Thread Roelof Wobben
Op donderdag 17 april 2014 13:26:35 UTC+2 schreef Michael Gardner: > > On Apr 17, 2014, at 02:34 , Tassilo Horn > > wrote: > > > And now you have an if without then which will give you another > > exception. > Yep, but that one I solved already. > > Not true. It's more common to use 'when

Re: boolean problem

2014-04-17 Thread Michael Gardner
On Apr 17, 2014, at 02:34 , Tassilo Horn wrote: > And now you have an if without then which will give you another > exception. Not true. It's more common to use 'when', but single-branch ifs are perfectly fine. -- You received this message because you are subscribed to the Google Groups "Cloj

Re: boolean problem

2014-04-17 Thread Tassilo Horn
Roelof Wobben writes: Hi Roelof, >> > I have to check if x is a nil or false and then the output must be >> > false,\ Otherwise I have to be true. >> >> Why? nil and false are already falsy, everything else is true. And >> if you have to interact with java where some method wants some "real"

Re: boolean problem

2014-04-17 Thread Roelof Wobben
Op donderdag 17 april 2014 09:34:52 UTC+2 schreef Tassilo Horn: > > Stanislas Nanchen > writes: > > > You miss one parentheses at the end of your expression > > > > (defn boolean [x] > > (if (and (nil? x) (false? x)) > > )) > > And now you have an if without then which will give you ano

Re: boolean problem

2014-04-17 Thread Tassilo Horn
Stanislas Nanchen writes: > You miss one parentheses at the end of your expression > > (defn boolean [x] > (if (and (nil? x) (false? x)) > )) And now you have an if without then which will give you another exception. And the test expression is a contradiction, i.e., it's always false. Noth

Re: boolean problem

2014-04-17 Thread James Trunk
Hi Roelof, I'd recommend using an editor that supports rainbow brackets so you can easily see when your parens are matched. Also, when you get your parens matched you'll find another error in your code, check out the docs for if to figure th

Re: boolean problem

2014-04-17 Thread Stanislas Nanchen
Hello, You miss one parentheses at the end of your expression (defn boolean [x] (if (and (nil? x) (false? x)) )) cheers, stan. On Thursday, April 17, 2014 9:11:13 AM UTC+2, Roelof Wobben wrote: > > Hello, > > IM working at the Iloveponies github tutorial and Im stuck here, > > I have to ch