From: Paul Prescod Date: 2001-10-27T03:04:38+09:00 Subject: [ruby-talk:23484] Re: Issues with white space [was Re: Bruce Eckel's opinion of Ruby] "Raja S." wrote: > >... Unlike Python, Ruby has some ability to automatically detect when an > expression is spanning multiple lines: Well, since you mentioned Python... Python also automatically detects, but in different situations. > 1 + 2 + # sees a plus and correctly assumes the expression is > 3 => 6 # not yet over; smart parsing ! no need for explicit > # continuation >>> print (8 + ... 20)/2 14 The parens are a very explicit way of saying that an expression is not over. > 1 + 2 # presumes the expression is over > + 3 # this is an entirely different line of code Ruby's behaviour confuses even Ruby programmers like Johann, SER and you. The behaviour they expected is precisely the Python behaviour. Paul Prescod