A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/311383.html below:

C#3.0 and lambdas

C#3.0 and lambdasSteven Bethard steven.bethard at gmail.com
Mon Sep 19 11:36:49 EDT 2005
Paul Rubin wrote:
> "Fredrik Lundh" <fredrik at pythonware.com> writes:
> 
>>    "Is anyone truly attached to nested tuple function parameters;
>>    'def fxn((a,b)): print a,b'?  /.../
>>
>>    Would anyone really throw a huge fit if they went away?  I am willing
>>    to write a PEP for their removal in 2.6 with a deprecation in 2.5 if
>>    people are up for it."
> 
> 
> It's not just function parameters, it works in assignments too:
> 
>     s = ((1,2), (3,4))
>     ... 
>     ((x1,y1), (x2,y2)) = s
> 
> Why is there such eagerness to remove it?

The eagerness is only to remove it from function parameters, not from 
tuple unpacking in general.  I'm not sure I fully understand why people 
are eager to do this, but it has to do something with making the AST 
simpler, and that the form itself is not used all that often.

But since I'm on the don't-remove-it side, my understanding of the 
arguments against it is probably lacking. ;)

STeVe

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4