[Python-3000] lambda

Bill Janssen janssen at parc.com
Fri Mar 28 21:07:03 CET 2008


> As a human, it throws me off -- and so does lambda.  Much better to just wr=
> ite
> 
>     def _square(x):  return x**2
>     map(square, lst)
> 

Excellent illustration of why you want lambda: no need to keep two
more or less meaningless symbol names in sync, in a language which
doesn't provide any compile-time checking of such things.

Bill


More information about the Python-3000 mailing list