From: Marcin Raczkowski Date: 2008-02-09T22:20:07+09:00 Subject: Re: Your own if/else Curt Sampson wrote: > Actually, I find the Smalltalk way a little more elegant. The booleans > have true:, false:, and true:false: methods; each of the parameters > takes a block: > > x > 3 true: [ 1 + 1 ] false [ 0 ] > > (If I recall correctly.) > > cjs Well you can do it with ruby (and even c)like this: x >3 ? [1+2] : [0] :) Inyaway i just wanted to make someone's life little easier, and/or more fun :)