alternatives to making blocks like { } or other ??

Greg Ewing greg at cosc.canterbury.ac.nz
Wed May 19 21:09:16 EDT 2004


Tim Williams wrote:
> I found a bug in one of my programs recently where a line
> of code should have been outside of an 'if', but wasn't because I hit
> TAB one too many times.

And for some reason it wasn't obvious from looking
at the indentation?

In a brace-delimited language, you can get the
opposite problem, which is much worse: the code
*looks* right judging by the indentation, but it
doesn't match the brace structure.

Python is a WYSIWYG language!

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list