CRAZY: First class namespaces

Christian Tismer tismer at tismer.com
Mon May 29 13:47:25 EDT 2000


Amit Patel wrote:
> 
>  Christian Tismer  <tismer at tismer.com> wrote:
> |
> |
> | What would be better for the language, dynamic or lexical?
> | I really don't know, please tell me your thoughts.
> |
> 
> I would find lexical far more useful and less confusing.  Consider
> this:

<snip topic="example"/>

...
> There are very few languages that use dynamic scope anymore.  That's
> because lexical scope, although a little harder to implement, is much
> more intuitive and allows for modular programming.

I agree, mostly.
Lexical scope is the way to go if we are going to introduce
non-explicit scoping at all (by automatic lookup in __parent__).

I'd also like to give access to dynamic scope, but explicit
only. Have a look at Darrel's post, that's like what I mean. It
comes naturally if you are doing continuations, since referring
to one's caller is already like dynamic scope, and the rest is
just an extension of that idea.

These seem to be two completely different issues, both worth
some consideration.

cheers - chris

-- 
Christian Tismer             :^)   <mailto:tismer at appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com




More information about the Python-list mailing list