do people really complain about significant whitespace?

Slawomir Nowaczyk slawomir.nowaczyk.847 at student.lu.se
Wed Aug 9 10:23:23 EDT 2006


On Wed, 09 Aug 2006 09:13:21 -0500
skip at pobox.com wrote:

#> 
#>     >> of the driving principles behind Python is that, because code will be
#>     >> read more often than written, readability is more important.
#> 
#>     Stephen> In which case, for long functions with multiple levels of
#>     Stephen> indentation Python fails compared to languages that use braces
#>     Stephen> or END or end; etc.
#> 
#> No.  In that case Python makes it more readily apparent that your code is
#> too complex.  With C, Java, C++, Perl or FORTRAN you just smush everything
#> over to the left and pretend it's not. ;-)

Well, one space is sufficient indentations for Python, right? So even
on 80 column screen, you can easily fit about 40 levels of nesting
before it becomes a real problem :D

In other words, it is possible to write bad code in any language. We
should focus on making it easier to write good code, not to make
writing bad code difficult.

-- 
 Best wishes,
   Slawomir Nowaczyk
     ( Slawomir.Nowaczyk at cs.lth.se )

The nice thing about standards is that there are so
many of them to choose from.




More information about the Python-list mailing list