3 ms·
Who disliked it? I used it all the time. Was there any survey or similar?
by lmm 11y ago
Who disliked it? I used it all the time. Was there any survey or similar?
- Vaskivo 11y agoGuido disliked it. And he's the BDFL.
- Veedrac 11y agoThat's not quite a fair reduction; if it was just down to Guido map would be displaced too, or even gone.
- spiralx 11y agoYou could quite easily use a process like the one described in the article to select the 'top' 1,000 Python packages, and then scan each of those for occurrences of calls to each of map, filter and reduce, and that way build up a fairly reasonable picture of how commonly each function is used. While I use reduce a lot, I would guess that even with comprehensions making most uses of map and filter obsolete, that reduce is still the least commonly called of the three.