Fully Bracketed Syntax

Gerrit Holl gerrit.holl at pobox.com
Sat Feb 12 11:36:08 EST 2000

Eaglestone, Robert NGC:B918:EXCH" wrote on 950195591:
> Hello all,
> In general, it seems to me that all good programmers
> indent their code.  However, mandating it as part of
> the form of a language sounds ... strange.
> However, I don't like the BEGIN...END bracketing done
> by Pascaline languages; neither do I love the {...}
> of C and its descendants.
> Has the creator of Python looked into fully bracketed
> syntax?  That might not be the actual term, so here's
> an example of what I'm thinking about:
> if ( foo > bar )
>    do_something();
>    do_something_else();
>    done();
> endif

I know that many language use semicolons to end their lines,;
but I never really understood why.;
If you write a sollicitation letter (is it right English?),;
I don't think your potential boss would like all those semicolons.;
In Python, it's just not needed,;
but it is permitted.;

Python uses EITHER ; OR \n for ending it's statements,;
multiple statements on a line are perfectly valid, like:;

foo(); bar(); fb();

In fact, Python does use block delimeters,;
it starts with a colon, and ends with any character!;
This is valid:;

if a:;

It just uses the 'b' to end a block!;
A '#' can also be used,;
or two quotes, if you'd rather have that!;

kind regards,;

Homepage: http://www.nl.linux.org/~gerrit;
-----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com;
Version: 3.12;
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O;
!M !V PS+ PE? Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y;
-----END GEEK CODE BLOCK----- moc.edockeeg.www//:ptth;

More information about the Python-list mailing list