Let's Talk About Lambda Functions!

Fredrik Lundh fredrik at pythonware.com
Sun Jul 28 03:58:37 EDT 2002


Bryan Olson wrote:

> The mistake was limiting lambda to expressions.

Guido can channel himself (or Tim will do it), but from what
I can tell, he's always said that the "mistake" was adding
something to the language that almost, but not completely,
works like lambdas do in other languages.

(lambda, map, filter, etc was contributed code)

the really big usage problem (whether you knew lambdas
from other languages or not) used to be that they were a
real pain to use under the LGB scoping rule.  with the intro-
duction of nested scopes, that problem no longer exists.

to fix the other "mistake", some needs to come up with a
really great syntax (and get michael hudson to implement
it for them ;-).  ideas are welcome.

</F>





More information about the Python-list mailing list