why tar is strange
Edward S. Vinyard
vinyard at arlut.utexas.edu
Wed May 24 09:46:27 EDT 2000
On 23 May 2000, Martijn Faassen wrote:
>I never used that. 'for' loops are generally more clean and more
>extensible in Python. I only find myself using map() rarely, filter()
>even more rarely, and reduce() hardly at all. Of course your mileage may
>vary.
How are 'for' loops more extensible in Python?
Grant Griffin <g2 at seebelow.org> wrote:
>> Besides map, Python has lots of built-in functions emboding concepts
>> which aren't familiar to me as an experienced C/C++ programmer, for
>> example: map, reduce, lambda, filter, etc.
map, reduce, and filter have equivalents in the STL.
>I think Guido's idea here is you shouldn't use those a lot anyway. It's
>said he rather regrets adding 'lambda' to the language, after all. Not
>that this kind of functional programming can't be fun.
Why should we avoid these functions?
Thanks,
Ed
More information about the Python-list
mailing list