Re: the annoying, verbose self
- From: "Colin J. Williams" <cjw@xxxxxxxxxxxx>
- Date: Sun, 25 Nov 2007 10:47:48 -0500
MonkeeSage wrote:
The issue of lexical scope still looms large on the horizon. How does
one distinguish between attributes (as scoped by the "with" clause),
local/global variables, and function/method calls? There doesn't seem
to be an easy way. You'd need multiple passes over the data to
determine various scopes -- and for what, to save typing a few
characters? And even if implemented, it would mean hiding the
complexity of the resolution, which is not a good thing.
Regards,
Jordan
Does this address your concerns?
The idea being that "with self" use
creates a new namespace:
newGlobal= oldGlobal + oldLocal
newLocal= names from self
Similarly, "with math" creates a newer
namespace:
newerGlobal= newGlobal + newLocal
newerLocal= names from math
My guess is that there would be little
use for nesting the
"with".
Colin W.
.
- References:
- the annoying, verbose self
- From: braver
- Re: the annoying, verbose self
- From: bearophileHUGS
- Re: the annoying, verbose self
- From: BJörn Lindqvist
- Re: the annoying, verbose self
- From: Steven D'Aprano
- Re: the annoying, verbose self
- From: Colin J. Williams
- Re: the annoying, verbose self
- From: Andrew Koenig
- Re: the annoying, verbose self
- From: Colin J. Williams
- Re: the annoying, verbose self
- From: MonkeeSage
- the annoying, verbose self
- Prev by Date: Re: OPLC purchase period extended
- Next by Date: Re: PyQt, Cannot send events to objects owned by a different thread?
- Previous by thread: Re: the annoying, verbose self
- Next by thread: RE: the annoying, verbose self
- Index(es):
Relevant Pages
|
|