
11 May
2005
11 May
'05
9:14 a.m.
Quinn Dunkan
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 \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/