A modest indentation proposal
Bjorn Pettersen
BPettersen at NAREX.com
Thu Nov 29 18:12:48 EST 2001
> From: Erann Gat [mailto:gat at jpl.nasa.gov]
>
[snip]
>
> I propose to use a semicolon at the end of a line to denote
> the end of a block, e.g.:
>
> for i in l: # Colon signals beginning of block
> foo()
> baz(); boff() # Semicolon separating statements works as usual
> bar(); # Semicolon at end of line signals end of block
> biff()
>
>
> This convention is 100% backwards-compatible with current
> practice, that is, code written using this convention runs
> with no problems in Python as it currently stands.
This is currently correct code:
for I in l:
foo();
baz(); boff();
bar();
biff()
FWIW, I don't see what block terminators have to do with large scale
programming...
-- bjorn
More information about the Python-list
mailing list