Python's "only one way to do it" philosophy isn't good?

Paul Rubin http
Tue Jun 26 13:03:33 EDT 2007


Andy Freeman <anamax at earthlink.net> writes:
> And he's wrong, at least as far as common lisp is concerned - map does
> exactly that.
> 
> http://www.lispworks.com/documentation/HyperSpec/Body/f_map.htm

"sequence" there just means vectors and lists.

> Map doesn't work on generators or iterators because they're not part
> of the common lisp spec, but if someone implemented them as a library,
> said library could easily include a map that handled them as well.

Right, more scattered special purpose kludges instead of a powerful
uniform interface.



More information about the Python-list mailing list