Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


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)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: