Fully Bracketed Syntax

Terry Reedy tjreedy at udel.edu
Sat Feb 12 04:12:29 CET 2000


"Gerrit Holl" <gerrit.holl at pobox.com>
> Eaglestone, Robert NGC:B918:EXCH" wrote on 950195591:
> ...
> > if ( foo > bar )
> >    do_something();
> >    do_something_else();
> >    done();
> > endif
>
> Let me add two characters, and it's totally valid.
>
> if ( foo > bar ):
>    do_something();
>    do_something_else();
>    done();
> #endif

To 'make up' for the two added chars, we can delete the two parens.
Also, ;\n is redundant if \n is used as a terminator rather than whitespace.

Terry J. Reedy







More information about the Python-list mailing list