2 ms·
I definitely agree with this, but note that the semantics in your code are different from those in Linus's example - your code filters out ALL matches.
by falcor84 10y ago
I definitely agree with this, but note that the semantics in your code are different from those in Linus's example - your code filters out ALL matches.
- fdgdasfadsf 10y agoThis is actually an important point. Quite a few times I've written something that started as a list comprehension, changed it to a lambda later in the sprint and finally to a loop when the requirements became more detailed. - The real world is unfortunately full of business requirements that think that they are special flowers.
- PJDK 10y agoIndeed, I should have been clearer this is just a similar example, not equivalent code (and I assume nothing like performant enough for Linus's needs)