Re: A replacement for lambda
- From: Paul Rubin <http://phr.cx@xxxxxxxxxxxxxx>
- Date: 30 Jul 2005 02:17:12 -0700
Stefan Rank <stefan.rank@xxxxxxx> writes:
> I am sorry if this has already been proposed (I am sure it has).
> Why not substitue python-lambdas with degenerated generator expressions::
>
> (lambda x: func(x)) == (func(x) for x)
I don't think I've seen that one before, and FWIW it's kind of cute.
But what's wrong with leaving lambdas the way they are? Anyone who can
understand generator expressions can understand lambda. I don't see any
point in trying to improve on lambda, without actually fixing its main
problem, which is the inability to create multi-statement closures.
.
- References:
- A replacement for lambda
- From: Mike Meyer
- Re: A replacement for lambda
- From: Christopher Subich
- Re: A replacement for lambda
- From: Stefan Rank
- A replacement for lambda
- Prev by Date: rfc822 module bug?
- Next by Date: Re: A replacement for lambda
- Previous by thread: Re: A replacement for lambda
- Next by thread: Re: A replacement for lambda
- Index(es):