[Python-3000] lambda

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 27 00:34:37 CET 2008


If this were ever to change, my preference would be to
find a syntax that doesn't use a keyword at all.

Lambdas are most useful when the body is extremely
short. But in those cases, the word 'lambda' itself
is nearly as long as the body, which destroys about
half the benefit of using it in the first place.

What's needed is something very concise and unobtrusive,
such as

   x, y => x + y

-- 
Greg


More information about the Python-3000 mailing list