I sing the praises of lambda, my friend and savior!

Antoon Pardon apardon at forel.vub.ac.be
Tue Oct 12 10:19:55 CEST 2004


Op 2004-10-11, Jeff Shannon schreef <jeff at ccvcorp.com>:
> gabriele renzi wrote:
>
>>
>> then what you want is a better lambda. One where you can use return, 
>> maybe, and  where you can have statements and multiple expressions.
>> Don't throw away the baby with the bathwater.
>
>
> But because of Python's line- and indentation-based syntax, doing all of 
> that on a single line is... um... awkward at best, to put it mildly.  

Which is one of the reasons I think the indentation-based syntax was
a mistake. If the syntax becomes an argument against a construct
in the language, something is wrong with the syntax IMO.

-- 
Antoon Pardon



More information about the Python-list mailing list