From: matt@... (matt neuburg) Date: 2006-10-18T04:55:12+09:00 Subject: Re: ruby way to say this? Max Lapshin wrote: > On Oct 17, 2006, at 11:15 PM, matt neuburg wrote: > > > In Ruby, zero isn't false and there is no equivalent of the ?: > > operator > > with the middle term omitted. So e.g. I'd like to say [pseudo-code > > from > > some other language]: > > > > oneThing()?:otherThing() > > oneThing || otherThing Please pretend I'm just staring at you waiting for you to see why that won't work. :) m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Tiger - http://www.takecontrolbooks.com/tiger-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com