From: "Kroeger, Simon (ext)" Date: 2006-06-22T17:00:50+09:00 Subject: Re: The difference between s=s+"a" ans s<< "a" From: Robert Dober [mailto:robert.dober@gmail.com] Sent: Wednesday, June 21, 2006 11:10 PM > s << "a" > is just what you should do instead > of > s = s+ "a" > unless of course you get paid for GC ;) I think that should be solved in the interpreter not by the programmer. Meanwhile you are right, of course << is more efficient. > Calling writer methods on parameters is asking for side > effects, that might I guess that was my whole point. > be good or bad, I do not want to discuss that right now, but > has *nothing* > to do with the question of the OP. That might be true. > Fortunately I did not state my favorite way to use puts > puts some_variable * 1 << "some text" << ... > ;) > 8-) cheers Simon