From: David Leal Date: 2002-09-07T18:41:38+09:00 Subject: Re: Larry Wall's comments on Ruby Andrew Hunt wrote: > But you've piqued my curiosity: tell me, what did you find > surprising about Ruby? Where "surprising" is defined as > "you thought it worked one way" and then discovered that it did not, > or that it worked that way some of the time and some other way > the rest of the time? Here are two more: "abcd"[0] # => 97 (!!! Shouldn't this be "a"?) and "abcd".sub( /ab/ ) { |match| match[0] # => 97 (Huh? Shouldn't match be a MatchData?) } # => "97cd" (Should be "abcd") Ruby is my favorite language, but as long as we are all humans there will always be surprises... Cheers, David