Roy Tang

Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.

Blog Notes Photos Links Archives About

I would just choose a far-future date as the value for the constant NEVER. Then to check for deletion/expiry, just compare against NEVER.

Comments

That would be year in the 8099.
The possible issue with that is if you’re doing any range or ordering operations then having a large but real value may do something unexpected.
Noooooo! Don’t use a future date! Haven’t you learned anything from Y2k or SpamAssassin? :(