[Python-Dev] Explicit Lexical Scoping (pre-PEP?)

Almann T. Goo almann.goo at gmail.com
Tue Jul 11 01:11:27 CEST 2006


On 7/10/06, Jeremy Hylton <jeremy at alum.mit.edu> wrote:
>
> On 7/10/06, Ka-Ping Yee <python-dev at zesty.ca> wrote:
> > On Mon, 10 Jul 2006 skip at pobox.com wrote:
> > > I think Talin's got a point though.  It seems hard to find one short
> English
> > > word that captures the essence of the desired behavior.  None of the
> words
> > > in his list seem strongly suggestive of the meaning to me.  I suspect
> that
> > > means one's ultimately as good (or as bad) as the rest.
> >
> > What's wrong with "nonlocal"?  I don't think i've seen an argument
> > against that one so far (from Talin or others).
>
> It's a made-up word.  You won't find it in the dictionary and the
> google define: query sends me to a wikipedia page about quantum
> mechanics.  It also expresses itself in the negative form "not local"
> as opposed to the positive form like global "this is a global."
> Finally, I think it sounds yucky.
>
> To express this email in the positive form:
> 1. Reserved words should be real words.
> 2. The meaning of the word should be clear.
> 3. "Put statements in positive form."  (Strunk & White)
> 4. The word should sound good.
>
> global meets all of these requirements.  "free" was the word I
> remember preferring from earlier discussions, but I think it fails #2.
> (Too much confusion about freeing memory, for example.)



I remember previous discussions also referring to spelling this as "outer"
which IMO passes #2 as well as the other, although arguably #4 is subjective
;-).

-Almann

-- 
Almann T. Goo
almann.goo at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20060710/5d24e320/attachment.html 


More information about the Python-Dev mailing list