map/filter/reduce/lambda opinions and background unscientific mini-survey

Antoon Pardon apardon at forel.vub.ac.be
Wed Jul 6 11:39:17 CEST 2005


Op 2005-07-02, Mike Meyer schreef <mwm at mired.org>:
> "Sean McIlroy" <sean_mcilroy at yahoo.com> writes:
>
>> Peter Hansen wrote:
>> <snip>
>>> Sean, what gave you the impression this would change?
>> if that's the case then list comprehensions and/or "first class
>> functions" are likely to be the next target.
>
> The existence of list comprehensions are the reason that these
> functions are going away, so they aren't likely to be next. It's all
> part of "There should be one-- and preferably only one --obvious way
> to do it."

IMO people concentrate too much on the "and preferably only one" part
of this.

If you really want at least one obvious way to do things then,
there also will be a lot of things that have more than one
obvious way. Trying to eliminate all those mulitiple obvious ways,
which seems to be one of the goals here, will result in removing
the one obvious way for doing other things.

-- 
Antoon Pardon



More information about the Python-list mailing list