A critic of Guido's blog on Python's lambda
Frank Buss
fb at frank-buss.de
Sun May 7 04:58:17 EDT 2006
Alex Martelli wrote:
> I cannot conceive of one. Wherever within a statement I could write the
> expression
> lambda <args>: body
> I can *ALWAYS* obtain the identical effect by picking an otherwise
> locally unused identifier X, writing the statement
> def X(<args>): body
> and using, as the expression, identifier X instead of the lambda.
This is true, but with lambda it is easier to read:
http://www.frank-buss.de/lisp/functional.html
http://www.frank-buss.de/lisp/texture.html
Would be interesting to see how this would look like in Python or some of
the other languages to which this troll thread was posted :-)
--
Frank Buss, fb at frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de
More information about the Python-list
mailing list