5 ms·
A similar example is in a "filtering" operation. I mostly have this in functional programming where you pass a predicate to filter on. But what's the perspectiv
by Apanatshka 6y ago
A similar example is in a "filtering" operation. I mostly have this in functional programming where you pass a predicate to filter on. But what's the perspective of the filter? Are you filtering poison from your water, or are you sifting the water looking for gold nuggets. I prefer to use functions remove and retain (respectively) to be more explicit.
- kazinator 6y agoGNU Make has this naming problem too $(filter pat,list ...) and $(filter-out pat,list ...).