From: Pixel Date: 2001-10-27T03:58:59+09:00 Subject: [ruby-talk:23491] Re: Issues with white space [was Re: Bruce Eckel's opinion of Ruby] Paul Prescod writes: > >... 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. [...] > 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. alas, you can't plug in easily the python rule, otherwise this gets illegal: i = ( j += 1 j * 2 ) since ruby doesn't have the expression/statement distinction.