Python scoping

Steve Horne sh at ttsoftware.co.uk
Mon Oct 30 06:03:13 EST 2000


On Thu, 26 Oct 2000 15:29:22 -0700, Michael Ackerman
<ack at simplyweb.net> wrote:

>"Steven D. Majewski" wrote:

>>  A situation where the human eye uses indentation and the compiler
>> uses braces is unsafe.
>
>Why is it unsafe? Doesn't it work well in Haskell?

Never used Haskell, but the principle is the same in any block
structured language. The program gets edited under a deadline for
changed requirements/bugfixing and the indentation no longer matches
the braces. The compiler believes the braces but the programmer
believes the indentation, so confusion ensues. Yes there are ways of
dealing with this, but it takes a while to realise that this is the
problem.

-- 
Steve Horne
sh at ttsoftware.co.uk



More information about the Python-list mailing list