Re:The Logical Disaster of Null
by daveFNbuck on Thursday May 10, 2018 @02:10AM
(#17036755)
I imagine businesses plan ahead and make deals for more than 7 years. It's already too late if your sentinel value is within the range of your real values.
[ Parent
| on HN ]
Re:The Logical Disaster of Null
by thaumasiotes on Thursday May 10, 2018 @04:59AM
(#17037279)
Is it a sentinel value or a sentinel range? There's nothing fundamentally wrong with e.g. having a service begin on May 1st 2028 (2028-05-01) and continue until forever (2025-12-31). The logic will only fail if you assume that 2025-12-31 and all subsequent dates are all equivalently forever.
Doing things that way means every time you check the value of a date, the very first check needs to be "is it the sentinel value?". But that's kind of the concept of a sentinel value anyway.
Re:The Logical Disaster of Null
by daveFNbuck on Thursday May 10, 2018 @10:18AM
(#17039026)
But there is something wrong with having some services actually end on 2025-12-31 and other services that are marked as ending on 2025-12-31 because they continue forever. Once 2025-12-31 is in the range of valid end dates, you can't tell the difference between the two.
> having a service begin on May 1st 2028 (2028-05-01) and continue until forever (2025-12-31).
That doesn't work as most of the program logic simple checks of a date is between two dates. It basically just treats 2025-12-31 as the end of all time. I suspect they will patch it before the end and change that date to something else.