allowing braces around suites

Ville Vainio ville at spammers.com
Fri Sep 3 10:44:37 EDT 2004


>>>>> "Anton" == Antoon Pardon <apardon at forel.vub.ac.be> writes:


[about block end markers]

    Anton> But a lot of things are not necessary but ended up in
    Anton> python because they were thought to be usefull. So that
    Anton> this is not necessary can hardly be a strong point against
    Anton> it.

None of the useful stuff that has been added is redundant. At least I
don't remember any addition that could be left away, and the code
would run exactly the same.

    Anton> Explicit is better than implicit is one that comes to mind.
    Anton> If python wouldn't do anything implicit then python would
    Anton> be a whole different language and IMO would probably be far
    Anton> less usefull.

End markers are not any more explicit than using just the white space
for blocks.

Besides, this discussion is rather pointless because Python already
supports blck end markers. See pindent.py in your Python distribution
or at:

http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Tools/scripts/pindent.py?rev=1.12&view=markup

-- 
Ville Vainio   http://tinyurl.com/2prnb



More information about the Python-list mailing list