[Haskell-cafe] Python?

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Wed May 11 09:14:05 EDT 2005

Quinn Dunkan <qdunkan at gmail.com> 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
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/

More information about the Haskell-Cafe mailing list