PEP 312 - Making lambdas implicit worries me, surely it's just the name 'lambda' that is bad...

Alexander Schmolck a.schmolck at gmx.net
Sun Mar 2 18:16:53 EST 2003


Stephen Horne <intentionally at blank.co.uk> writes:

> Actually, I've always thought that having separate 'def' and 'lambda'
> syntaxes is a bit redundant. In lisp (and a few others) you'd use the
> 'lambda' form to do both jobs, rather like (in current Python)
> writing...
> 
>   sum = lambda a, b : a + b

Not true, I think. Apart from scheme (which's lispness is often disputed in
both lisp and scheme circles).

alex




More information about the Python-list mailing list