Re: multi-line expressions (was Python had a little lambda ...)

Bennett Todd (bet@std.sbi.com)
Thu, 24 Feb 1994 15:59:58 -0500 (EST)

Chris Hoffmann writes:
>We've also identified the inability to create multi-line expressions
>as a weakness in Python syntax.

But then you go on to complain not about multi-line expressions, but about
an independant (orthogonal, it seems to me) issue, Python's use of
indentation to indicate block structure.

_I_ like it the way it is. Anybody who can't write consistently and
correctly indented code, shouldn't be programming. And if you can and do
write correctly indented code, the indentation _should_ communicate the
meaning to the compiler, just like it does to people. And if it does,
separate begin/end tokens are just noise.

Now I agree with your above statement, it'd be nice for some jobs if Python
could allow multi-line expressions just like it allows multi-line code
blocks. In both cases, though, I'd like to see the multi-line blocks
delimited by indentation.

As for people disliking the use of indentation, I'm not interested unless
they decide they don't like it after trying it. For some folks, anything
that doesn't look like Pascal is too weird. I'm glad we're not confined to
the scope of their vision.

-Bennett
bet@sbi.com