Fate of lambda, Functional Programming in Python...

Hans Nowak hans at zephyrfalcon.org
Sat Aug 21 03:52:44 CEST 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