Thread: Re: Why Ruby?
View Single Post
  #15 (permalink)  
Old 02-08-2010, 10:47 PM
Sebastian Hungerecker
Guest
 
Posts: n/a
Default Re: Why Ruby?

On 09.02.2010 00:20, Seebs wrote:
> I guess, to me, "foo"[1] should be an o. If printing it yields a number,
> instead of the letter o, something has gone wrong.
>

We agree on that. I've always thought ruby should have a Char class, so
"foo" could
behave basically like a collection of Char. At least as far as [] is
concerned.

Reply With Quote