Fate of lambda, Functional Programming in Python...

Hans Nowak hans at zephyrfalcon.org
Fri Aug 20 21:52:44 EDT 2004


Anthony Baxter wrote:

> First point: lambda, map, filter and reduce won't go away before Python 3.0,
> at the very least. And, to be honest, I suspect map/filter/reduce are much more
> likely to die than lambda, as they can nearly always be expressed more clearly
> as listcomps or genexprs. 

People often lump reduce in with the rest, but there's really no easy way to 
express a reduce with list comprehensions.  That said, for Python 3.0, these 
functions would probably be better off in a separate module with functional 
constructs, rather than disappearing entirely...

--
Hans Nowak (hans at zephyrfalcon.org)
http://zephyrfalcon.org/




More information about the Python-list mailing list