On Mon, Oct 15, 2007 at 07:27:32PM +0900, Robert Dober wrote: > > Now I am completely impartial on the behavior, but if nil.to_i is > confusing for some folks it might be a good idea to put it away unless > other folks really need it. > My pragmatic question is therefore: > nil.to_i usecases anyone? How about any circumstance in which one performs some kind of counting function in code, and operates on the number of whatever is counted, where no specific value is yet applied to the variable in question until the first item is counted? I suppose I find it more difficult to imagine a use case for nil.to_i returning a no method error or throwing an exception. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Eat your crow early, while it's young and tender. Don't wait until it's old and tough.