From: Daniel DeLorme Date: 2009-08-18T21:31:38+09:00 Subject: Re: Bizarre Range behavior Yukihiro Matsumoto wrote: > I repeat. If String#upto has not contained magic (that inherited from > Perl) for long time, I wouldn't add any magic that is difficult to > explain using messaging model. But in reality, it does now, and we > cannot remove it. So, I'd rather move forward to avoid astonishment > of mere mortal seeing: > > ("9".."11").to_a > > where String#succ generates "9", "10", "11". That sounds nice and consistent, but why limit ourselves to numbers? ("y".."aa").to_a should then generate ["y", "z", "aa"] since that's what String#succ generates. Sounds like this could snowball into a nightmare of incompatible changes. -- Daniel