[Python-ideas] The Return of Implicit Lambda (Re: Allowing breaks in generator expressions by overloading the while keyword)

Steven D'Aprano steve at pearwood.info
Sat Feb 22 00:19:24 CET 2014


Guys, I had to page through *eight pages* of quotes, at least six levels 
deep, before I found a two-line new comment.

Please [snip] unnecessarily quoted text. Leave enough to establish 
context, every email doesn't need to be a full archive of the entire 
discussion to this point.

On Fri, Feb 21, 2014 at 04:09:47PM -0600, Ryan Gonzalez wrote:
[...]
> The question mark still looks like Perl.
> 
> What about a reserved word instead?


We already have perfectly good syntax for lambdas. Making them even 
more concise is not important enough to use another keyword, with the 
consequences of preventing code from using that word in the future, and 
breaking existing code that uses that word.


I like lambda. But trying to make them even shorter and more concise (or 
if you want to be cynical, more cryptic) is not on my agenda. 

-1


-- 
Steven


More information about the Python-ideas mailing list