[Python-Dev] Re: Dynamic nested scopes

Ken Manheimer klm@digicool.com
Wed, 15 Nov 2000 00:05:10 -0500 (EST)


On Tue, 14 Nov 2000, Ken Manheimer wrote:

> In any case, dynamic scoping breaks locality of reference for just about
> any definition of "locality".

(Huh - i realized that "locality of reference" isn't the right phrase, not
sure what is.  I was trying to refer to something along the lines of
modularity - basically, the virtue of lexical scoping is that you can,
eventually, trace the connections by reading the program text.  Dynamic
scoping is not so well behaved - any routine that calls your routine may
contain a variable whose value you're expecting to get from elsewhere.  
It's too promiscuous...)

Ken