Re: A replacement for lambda
- From: Christopher Subich <spam.csubich+block@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Jul 2005 22:27:20 -0400
Paddy wrote:
Christopher Subich <spam.csubich+bl...@xxxxxxxxxxxxxxxxxxxxx> writes:
Basically, I'd rewrite the Python grammar such that: lambda_form ::= "<" expression "with" parameter_list ">"
I do prefer my parameter list to come before the expression. It would remain consistant with simple function definitions.
Stylistic choice; I can appreciate your sentiment, but remember that this isn't exactly a function definition. It's a form of 'delayed expression.' Also, <... with ...> is nearly identical (identical if you replace 'with' with 'for') to existing list and generator comprehensions, so we'd get to stretch that idiom.
.
- References:
- A replacement for lambda
- From: Mike Meyer
- Re: A replacement for lambda
- From: Christopher Subich
- Re: A replacement for lambda
- From: Paddy
- A replacement for lambda
- Prev by Date: Re: A replacement for lambda
- Next by Date: Re: Dabo in 30 seconds?
- Previous by thread: Re: A replacement for lambda
- Next by thread: Re: A replacement for lambda
- Index(es):