Nested scopes: why is it weird?

Cliff Wells logiplexsoftware at earthlink.net
Fri Sep 7 19:09:01 EDT 2001


On Friday 07 September 2001 15:48, Chris Barker wrote:
> Paul Prescod wrote:
> > I think it should similarly reqiure you to be explicit
> > when you want to shadow one. Or it could simply disallow the shadowing
> > -- it isn't very useful anyhow. Just call the inner a "inner_a".
>
> I think this would be a nightmare for code maintainance and simple
> syntax. How often do you use a simple variable name like "i" for an
> index? would you really want to use i in one scope, and then inner_i in
> the next, and then inner_inner_i?
>
> And as soon as you re-arranged your code a little, you would have to
> re-name a bunch of stuff. I like the current scheme just fine.
>
> -Chris

ditto.

-- 
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308




More information about the Python-list mailing list