From: Jim Deville Date: 2009-03-27T07:56:01+09:00 Subject: [ruby-core:23028] Re: [Bug #1317] Creating a range with strings > -----Original Message----- > From: Michael Selig [mailto:redmine@ruby-lang.org] > Sent: Thursday, March 26, 2009 3:34 PM > To: ruby-core@ruby-lang.org > Subject: [ruby-core:23027] [Bug #1317] Creating a range with strings > > Issue #1317 has been updated by Michael Selig. > > > This is a (possibly confusing) consequence of the behaviour of > String#next. > For most sortable objects, the following is true: > > obj.next > obj > > but not for strings. For example: > > "9".next => "10" > but > "10" > "9" => false Why doesn't Ruby have a collation concept to allow this to be changed? JD