From: Douglas Livingstone Date: 2006-03-12T10:56:49+09:00 Subject: Re: from Python to Ruby in 10 seconds 2006/3/12, Mc Osten : > > I noticed that strings are mutable in ruby since << adds to existing > string. But I found out sometimes += creates a new string objetc... > a += b is the same as a = a + b. So, (a + b) creates a new string, and then assigns it to a. If you did a = b + c, you would not expect b to change, and so it is the same with a += b. Douglas