From: "Kroeger, Simon (ext)" Date: 2006-06-22T16:55:40+09:00 Subject: Re: The difference between s=s+"a" ans s<< "a" > From: Pete [mailto:pertl@gmx.org] > Sent: Wednesday, June 21, 2006 11:45 PM > > Most readable + safe for me is e.g.: > > puts "Hello, #{name}!" > > puts "your calculation: #{arg1} * #{arg2} = #{arg1 * arg2}" In case this wasn't obvious: this was an example. As there is no syntactical difference between pass by value and pass by reference in ruby I try to avoid modifying parameters and would use += in favour of <<. (at least in such cases) cheers Simon p.s.: oh well, I know there is no such thing as pass by value in ruby at all, it just feels like it for immediate values.