From: Florian Gross Date: 2004-08-19T05:30:54+09:00 Subject: Re: Regexp scanning with MatchData (Re: multiple regexp matches) Austin Ziegler wrote: > There's a simple solution, and I'll probably open an RCR about this > if others agree with it. String#scan, #sub, and #gsub should yield > MatchData objects, not Strings. I agree with this and it seems that matz only hasn't done this yet, because of backwards compatibility. I'm referring to this posting of him: http://groups.google.com/groups?selm=1061229894.060091.14659.nullmailer%40picachu.netlab.jp > What do you think? I heavily agree with this. It's the way it should have been since the beginning. #to_str sounds like a way that shouldn't break to much code and Ruby could issue a migration warning when it is called. Rite was said to sacrifice compatibility for the cost of more elegance so now might be a good time for switching. Regards, Florian Gross