News for hackers. Stuff that matters.
Re:My Favourite Diff by Apanatshka on Monday April 06, 2020 @04:45AM (#22791899)
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.
Re:My Favourite Diff by kazinator on Monday April 06, 2020 @10:47AM (#22794196)
GNU Make has this naming problem too $(filter pat,list ...) and $(filter-out pat,list ...).