From: Phrogz Date: 2007-10-16T06:35:03+09:00 Subject: Re: nil.to_i returning zero On Oct 15, 3:22 pm, mortee wrote: > Gerardo Santana Gómez Garrido wrote: > > mortee wrote: > >> Well, if you'd like it so much, why not just redefine it in your own > >> programs? Everyone else seems to expect it to return 0 instead of being > >> hostile by throwing an exception... > > > Oh, c'mon ... > > For some weird reason, I don't *exactly* understand your counter-argument. I suspect that what Gerardo was intending to convey was: "Oh, c'mon... I'm telling you that I think the language should be changed, and you're telling me how I can change it just for me. That's not really my point. You say 'everyone else', but you don't provide any basis for that statistic. I've known experienced Rails developers who were surprised and burned by this, so your argument is specious. Please stick to discussing the merits of my arguments, and whether or not my proposal makes sense *for everyone*. How would you like it if every time you found a problem with the language and attempted to discuss it people just stuck their heads in the sand and yelled, 'Ruby is perfect! Everyone thinkgs so! If you think otherwise, you must be a nut; go modify the behavior of the core classes yourself and leave us sane people alone!'" I'm just guessing, though. :)