[Tutor] apply() vs. the extended call syntax
Peter Otten
__peter__ at web.de
Sat Aug 3 11:24:51 CEST 2013
Albert-Jan Roskam wrote:
> Is there a reason why the apply function is deprecated/gone, but map()
> isn't? Aren't they both based on the lisp-style functional programming
> approach?
I don't remember the discussion, but personally I never (well, maybe once or
twice) used apply while there are many instances of map/imap() in my code,
even though these could be rewritten as list comprehensions or generator
expressions. Perhaps there are core-devs in the same situation...
Had there been a great demand for apply() it could have been moved into
functools (like reduce()).
More information about the Tutor
mailing list