[Python-ideas] pep 312 - implicit lambdas idea
Jan Kaliszewski
zuo at chopin.edu.pl
Sat Aug 8 13:19:07 CEST 2009
08-08-2009 Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> My suggestion for a lightweight lambda syntax is
>
> args -> expr
>
> Examples:
>
> map(x -> x + 5, something)
>
> d = defauldict(->[])
-1
The idea would be nice, but "->" has already another meaning (in a
different context -- function annotations -- but it's not a good
idea to use the same "operator" for two completely different things,
both connected with functions).
*j
More information about the Python-ideas
mailing list