[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accumulator



Paul Prescod <paul@prescod.net> writes:

> Anything that can be done with lambda can be done without it, because
> these two statements are equivalent:
> 
> _ = lambda y: y
> 
> def _(y):
> 	...

Neither of those two statements makes an anonymous function or closure.

If/when Python gets a macro system, the value of anonymous functions
will become obvious.

-- 
<brlewis@[(if (brl-related? message)    ; Bruce R. Lewis
              "users.sourceforge.net"   ; http://brl.sourceforge.net/
              "alum.mit.edu")]>