News for hackers. Stuff that matters.
Re:Avoid Indirection in Code by marcosdumay on Monday June 24, 2019 @06:17PM (#20269102)
Just to add to lmm's comment:

> What happens when they have no overlap?

You get the empty range. Because any sane modeling of a range will have an empty value for completeness, and modeling it without those overlaps and date specialization clobbering your screen will make it patently obvious wether your type is complete or not.

And if you still forgot to include the empty value, you won't be able to write the overlap function, so you will have to go back.

There are no comments on this comment yet.