Time::never?


#1

Why isn’t there a Time::never variable?


#2

Hmm, that sounds to me more like a name for an interval or time-out, rather than an absolute time… Perhaps Time::none would be better…? Anyway, not sure why there isn’t one, I always just used “Time()” instead.


#3

Well for example if you want to record the “last time you did something”, to handle the case where the something was never performed it might be handy to have Time::never instead of an extra boolean.

The problem is that we would want Time::never to assert or throw an exception if it is used in a calculation like a time difference, or passed to something expecting an actual time.


#4

Well, interesting idea, but it’d be quite a big change to the class if every operation had to check for that special case. I see your point though.