Anonymus functions revisited
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Tue Mar 22 15:45:42 EST 2005
Ron a écrit :
> On 21 Mar 2005 22:37:42 -0800, "Kay Schluehr" <kay.schluehr at gmx.net>
> wrote:
>
>
>>Mappings like that:
>>
>> ((x,y),z) -> x+y-z
>>
>> ((x,y=0),z) -> None
>>
>>should be valid actions too.
>>
>>What is the audience thinking about that?
>
>
> I think that there's too much implied, and that in the long run it,
> if we keep addding in special shortcuts, it will lead to very dificult
> to read code.
>
Don't like Perl ?-)
The problem here is that Kay's proposition mixes two points: flexible
tuple unpacking and a new syntax for anonymous functions.
More information about the Python-list
mailing list