Paul Magnussen wrote in post #1089966:
> Hi,
>
> I have programmed in various languages previously, but am new to Ruby.
>
> So far am very impressed with it; but there is one behaviour I find
> quite alarming, which stems from the fact that Ruby treats strings as
> objects rather than as primitives.

Hi,

Well, you called strings as "primitives"; did you use JavaScript? :)

Anyway, in Python the strings are indeed immutable; but not so in Ruby.
That's why you got all the results.

Regarding why in Ruby the strings are mutable (and with all the
consequences), I will let somebody else explain it.

Regards,

Bill

-- 
Posted via http://www.ruby-forum.com/.