From: Laurent Sansonetti Date: 2003-11-08T00:36:32+09:00 Subject: Re: ruby-dev summary 21637-21729 Yukihiro Matsumoto wrote: > |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? > Because the String class does not provide the `+@' method? But as Tim pointed out, since Ruby seems to be parsed line by line, it can be really hard to implement this. And of course, it can break the current syntax (if we replace strings with integers, how the parser should react since integers have `+@' ?) So it's surely better to keep the current syntax. -- Laurent