[Python-3000] Requiring () around lambda's argument list
Michael Chermside
mcherm at mcherm.com
Tue May 2 13:54:07 CEST 2006
Thomas Wouters writes:
> Lambda-lovers will probably jump all over me for suggesting
> this, and I doubt you'll go fir it, but what about just not
> allowing type annotations in lambda statements? They're
> neutered anyway.
Speaking as a lambda user... +1... Great Idea Thomas! Lambdas are
for tiny anonymous functions... if you feel the need to specify the
types, why not go ahead and include a function name and perhaps
even a docstring -- use def instead.
-- Michael Chermside
More information about the Python-3000
mailing list