Q: Python 2.0 preliminary features?

Alexander Williams thantos at brimstone.mecha
Sat Oct 9 03:00:27 EDT 1999


Note that Scheme already does what many consider 'the right thing'
(myself, among others), and that Scheme is a language in which
functions are first-class objects, possess closures (lambdas), and has
arbitrarily deep lexical scoping (of the kind I wish Python
possessed).

Note that you can do away with the 'global' statement altogether in
Python-With-Lexical-Scope/Closure since you can create an empty object
named 'Global' in the top-level scope which will then be accessible in
all others (as long as you're smart enough to not shadow it).

[Ahhhh, to have Scheme's lexical scope and Haskell's lazy
evaluation/list comprehensions/type declarations/type inferences in
Python syntax.  Pure bliss.]

-- 
Alexander Williams (thantos at gw.total-web.net)
"In the end ... Oblivion Always Wins."




More information about the Python-list mailing list