C#3.0 and lambdas

Christophe chris.cavalaria at free.fr
Mon Sep 19 09:25:43 EDT 2005


Wolfgang Langner a écrit :
> Hello,
> 
>>     "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."
> 
> 
> First I missed the def and thought "Oh no don't remove it
> sometimes I pass a tuple to my functions".
> But the I saw the "def" keyword and realized I never
> used such a function syntax.
> 
> So, in one line (my mailer truncated it):
> 
> def fxn((a,b)): print a,b'
> 
> for removal, not:
> 
> 'fxn((a,b)' function calls
> 
> 
> I'm ok with removal.
> 
> 
> bye by Wolfgang

I use them a lot myself and I wouldn't want to see them removed. It is 
just so convenient to have 2D coordinates be simple tuples and have 
functions which alternatively take pos or (x,y) as a parameter.



More information about the Python-list mailing list