From: Laurent Sansonetti Date: 2003-11-07T18:04:47+09:00 Subject: Re: ruby-dev summary 21637-21729 Hi, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: ruby-dev summary 21637-21729" > on 03/11/06, Paul Brannan writes: > > |Is the syntax error because of the first line or because of the second? > > Both. Sequence of strings will no longer be valid. > > |I ask because I do this a lot in my code: > | > | s = "this is a string " \ > | "that I have chosen to break " \ > | "into multiple lines" > > How about > > s = "this is a string " + > "that I have chosen to break " + > "into multiple lines" I would prefer this: s = "this is a string " + "that I have chosen to break " + "into multiple lines" I think it's always better to avoid operators in the end of lines (code is therefore more readeable). Same think for this: if ( expr1... and expr2... and expr3... ) # do something end But AFAIK && unfortunately, Ruby does not handle this kind of syntax yet. Matz, what do you think about this? Thanks, -- Laurent