On Fri, Nov 30, 2018 at 10:32:31AM +0100, E. Madison Bray wrote:

> I think it goes without saying that
> map() is special in a way: It's one of the most basic extensions to
> function application and is a fundamental construct in functional
> programming and from a category-theortical perspective.  I'm not
> saying Python's built-in map() needs to represent anything
> mathematically formal, but it's certainly quite fundamental which is
> why it's a built-in in the first place.

Its a built-in in the first place, because back in Python 0.9 or 1.0 or 
thereabouts, a fan of Lisp added it to the builtins (together with 
filter and reduce) and nobody objected (possibly because they didn't 
notice) at the time.

It was much easier to add things to the language back then.

During the transition to Python 3, Guido wanted to remove all three (as 
well as lambda):

https://www.artima.com/weblogs/viewpost.jsp?thread=98196

Although map, filter and lambda have stayed, reduce has been relegated 
to the functools module.



-- 
Steve
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to