From: Daniel DeLorme Date: 2009-08-20T11:27:07+09:00 Subject: Re: Bizarre Range behavior Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Bizarre Range behavior" > on Tue, 18 Aug 2009 21:31:38 +0900, Daniel DeLorme writes: > > |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. > > Indeed. The issue is that it's not easily distinguishable whether > a sequence using #succ from a string reaches to another, or not. > If there's affordable scheme to implement, I'd love to check in. While investigating this I came across: >> "\0019".succ => "\00110" I expected the result to be "\0020"; is that a bug? -- Daniel