From: Glen Pfeiffer Date: 2007-05-10T07:25:05+09:00 Subject: Re: How to write ruby in multiple lines On 05/09/2007 11:19 AM, Sylvain Joyeux wrote: > On Wednesday 09 May 2007, anakintang wrote: >> How can I write "s = s1 + s2 + s3" in multiple lines like >> below: > > Like that > s = s1 + > s2 + > s3 > > or > > s = s1 \ > + s2 \ > + s3 > > AFAIK, the first form is more in use than the second. In the example given, which is obviously contrived, it makes little difference. But when s1, s2, and s3 are longer expressions, I find that the second version is more readily grokked. Without looking at the end of a line, you can tell that it is a continuation of a previous line, and while at the end of a line to can tell that it is continued. That's my $0.02 -- Glen