[Python-Dev] Recommend accepting PEP 312 -- Simple Implicit Lambda

Guido van Rossum gvanrossum at gmail.com
Fri Jun 17 23:59:58 CEST 2005

[Raymond Hettinger]
> This PEP is an excellent example of improving readability and usability
> by omitting a keyword and simplifying syntax.  It neither provides nor
> takes away functionality; instead, it is a bit of a beautification
> effort.
> Essentially it creates a lighter-weight, more usable syntax for
> specifying deferred function arguments.  Like decorators, this helps out
> programmers who understand and use this technique, and it is harmless
> and invisible for the rest.  It is especially handy in the absence of an
> if-then-else expression.  The PEP is backwards compatible.
> Recommend accepting just the basic PEP which only targets simple,
> obvious cases.  The discussed extensions are unattractive and should be
> skipped.

-1. The "unary colon" looks unPythonic to me.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list