News for hackers. Stuff that matters.
Re:Applying the Linus Torvalds “Good Taste” Coding Requirement by falcor84 on Wednesday October 26, 2016 @04:00AM (#12794718)
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.
Re:Applying the Linus Torvalds “Good Taste” Coding Requirement by fdgdasfadsf on Wednesday October 26, 2016 @06:08AM (#12795233)
This 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.
Re:Applying the Linus Torvalds “Good Taste” Coding Requirement by PJDK on Wednesday October 26, 2016 @06:45AM (#12795410)
Indeed, 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)