From: Roger Pack Date: 2007-11-06T05:28:27+09:00 Subject: Re: ruby wish-list Suraj Kurapati wrote: > "foo".gsub! /o$/, "x" # IMHO, sweet! > > "foo".gsub! %r/o$/, "x" # IMHO, so-so! > > "foo".gsub!(/o$/, "x") # IMHO, ugly! > > Thanks for your consideration. I wonder if that fact that regex's always with have two /'s might help... Now my own wish. I wish ruby didn't need ,'s for method parameters. Why are they always necessary? foo a b c # as long as a, b, and c aren't functions, and aren't operators, this could parse! Take care. -Roger -- Posted via http://www.ruby-forum.com/.