why ; ?
Gilles G.
schaouette at free.fr
Thu May 8 02:47:59 PDT 2008
> Yeah, we're going round and round. If I break a line because it's too
> long, I absolutely do not want the compiler assuming that means "end
> of statement". As numerous examples have shown, it is perfectly
> possible for the compiler to misinterpret the programmers intent, and
> produce code that does completely the wrong thing.
>
> There are only two ways to avoid this problem:
> (1) require semicolons at end of statement
> (2) require line breaks which are not end-of-statement to be escaped
>
> Since I don't like (2), I must support (1).
In Python, nearly every time you need a long line, there are already parentheses in the expression, so you don't need to escape the new line.
Using Python
aVeryLongFunctionName(
argument1,
argument2,
More information about the Digitalmars-d
mailing list