From: Charles Mills Date: 2004-10-26T02:56:50+09:00 Subject: Re: [rcr] String#first / String#last On Oct 25, 2004, at 10:15 AM, Hal Fulton wrote: > In my mind, I blur the distinction between chars and "length 1" > strings. > > I am fully aware of the difference, but I rarely have need of > characters > as Fixnums. > > Ruby in the future (as I understand it) will also blur this distinction > further: Apparently ?x will be the same as "x" and "abc"[1] will be > "b". That is good to hear. I remember when I began learning Ruby I was put off/confused by the fact that String#[] returned a Fixnum when given a single index. -Charlie