Quinn Dunkan <[EMAIL PROTECTED]> writes:
> Python has first class functions and lexical scoping, and encourages
> higher-order functions, though to a much lesser degree than a real
> functional language.
It's lexical scoping is limited:
- The syntax can be heavy, as you can't embed a function containing
statements inside an expression.
- Because of implicit variable definitions (and lack of other syntax
which could change that) you can't modify variables introduced by
outer functions.
- Class definitions don't use lexical scoping (definitions introduced
in a class body are not visible as unqualified names by their bodies).
--
__("< Marcin Kowalczyk
\__/ [EMAIL PROTECTED]
^^ http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe