From: Hal Fulton Date: 2005-12-02T15:23:27+09:00 Subject: Re: String + Range = Strange Steve [RubyTalk] wrote: > Bob Showalter wrote: > >> The point is that even though "aa".."b1" is a valid range, calling >> succ repeatedly from the starting point will never yield the endpoint. > > > This, I think is the crux of the matter. It seems to me that given that > if "aa".."b1" is a valid range, that calling calling succ on "aa" should > logically eventually reach "b1". I understand that in Ruby, today, it > doesn't. I think that String#succ is of limited usefulness, and will *always* be a source of strange edge cases like this. Personally, I think that (perhaps) String ranges should be disallowed as being mostly nonsensical (unless a rigid order, like character set order, were imposed). Hal