[Python-ideas] pep 312 - implicit lambdas idea

Gerald Britton gerald.britton at gmail.com
Sat Aug 8 07:10:15 CEST 2009


+1

On Fri, Aug 7, 2009 at 9:17 PM, Greg Ewing <greg.ewing at canterbury.ac.nz>wrote:

> Steven D'Aprano wrote:
>
>  Why would you want to get rid of the lambda keyword? What's the benefit?
>>
>> Is this about saving twelve keystrokes?
>>
>
> It's about conciseness. The only time it makes sense to
> write a function in-line is when the body is extremely
> short -- but then it gets swamped by the lambda keyword
> itself.
>
> But I agree that the OP's particular solution is restricted
> to a case that's too special. My version is completely
> general -- it can express anything that the existing lambda
> can express.
>
> --
> Greg
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



-- 
Gerald Britton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20090808/b7ed3b9b/attachment.html>


More information about the Python-ideas mailing list