Some random thoughts and (vaguely) interesting things I see or do.
Sunday, September 03, 2006
Why everything in Ruby is such an uphill battle ?
I've just spent more than 10 minutes figuring out how to determine if a given string can be converted to an integer, because it turns out that the to_i string method never raises an exception and returns 0 when the string can't be converted, but what if I want to know when it can't be converted ? Grrrr ...