functional vs procedural list comprehension

Peter Dobcsanyi petrus at pobox.com
Fri Sep 7 18:34:43 EDT 2001


Tim Peters <tim.one at home.com> wrote:
> [Peter Dobcsanyi]
>> ...
>> I would be interested in the reasons for the procedural choice and
>> arguments for functional vs procedural behavior.

> I wouldn't.  If somebody wants faster listcomps, don't argue about it,
> implement it.  If it actually has a killer speed advantage, have faith that
> Guido will rationalize away any change in semantics <wink> -- but first be

I was more interested in the semantical aspect than in performance
considerations. Even if they did not have "killer speed advantage" I
would prefer functional list-comps.

But then ...

> potential-isn't-always-easy-to-actualize-ly y'rs  - tim

... I cannot argue with that.

    Peter



More information about the Python-list mailing list