From: Stefan Walk Date: 2006-01-29T07:46:41+09:00 Subject: Re: nil != [] Alex Polite wrote: > Well I do understand that it's a convention. They same is true for a > lot of things. Like the positioning of gas and break pedals in cars. > It's just a convention. But when GM puts a new car in the market they > don't swap them. My question is why the constructors of Ruby did? > alex When you get used to it, it's quite handy. Some methods return integers, and false values on failures. If 0 was false, you'd have to distinguish between 0 and false/nil when checking for success. Regards, Stefan