News for hackers. Stuff that matters.
Re:Ask HN: Anyone know any funny programming jokes? by roelschroeven on Thursday January 21, 2021 @05:04AM (#25857278)
Having the two separated gives the ability to disable/re-enable the filter without losing it. That's often very useful. In other cases you're very right.
Re:Ask HN: Anyone know any funny programming jokes? by diarrhea on Thursday January 21, 2021 @05:16AM (#25857372)
Then you'd go with `filter_enabled` or similar, which is an entirely different, separate flag. It is not coupled to what the filter itself looks like.