Python scoping
William Park
parkw at better.net
Thu Oct 26 15:24:29 EDT 2000
On Thu, Oct 26, 2000 at 03:06:57PM -0400, Steven D. Majewski wrote:
>
> On Tue, 24 Oct 2000, Joshua Muskovitz wrote:
> >
> > Driving without my headlights at night tends to diminish my overall speed
> > and distance I prefer to travel, but it doesn't make my life easier or
> > safer, does it?
>
> If programming languages used enforced redundancy so that brace-block
> structure and indentation block structure must agree, then programming
> would be safer.
> A situation where the human eye uses indentation and the compiler
> uses braces is unsafe.
> If you aren't going to enforce redundancy, then you have a choice:
> make humans adapt to the compiler, or make the compilers adapt to
> human perception.
> I think python made the better & safer choice.
Good programmers always use indentation, with or without braces. But, I
personally wouldn't mind "end" statements (ie. endif, endfor, endwhile,
etc.) for situations where blocks are longer than one screen.
---William Park, Open Geometry Consulting
More information about the Python-list
mailing list