From: amrangaye Date: 2006-02-02T06:44:14+09:00 Subject: Re: nil != [] >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. One example of this that tripped me up today is the regular expression match operator (=~), which returns (0-based) the index of a match, or nil otherwise. If 0 was false, you couldn't do: if str =~ /^Hello/ .....