From: matz@... (Yukihiro Matsumoto) Date: 2003-11-07T18:41:35+09:00 Subject: Re: ruby-dev summary 21637-21729 In message "Re: ruby-dev summary 21637-21729" on 03/11/07, Laurent Sansonetti writes: |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? There's always trade-off. Newline sensitive syntax do not allow line concatenation by operator at the beginning of a line, e.g. how can we distinguish s = "this is a string " + "that I have chosen to break " + "into multiple lines" which is a single assignment statement, from s = "this is a string " + "that I have chosen to break " + "into multiple lines" an assignment followed by two unary plus expression? matz.