On 2015-01-28 00:17, Chris Barker wrote:
[...] Sure, here you go:
Cool, the comparison operator logic looks very similar to mine:
I believe the ideal design is the following type hierarchy:
datetime_base datetime_neg_inf datetime_pos_inf datetime
But in the interests of pragmatism, I think this one can be made to work:
datetime datetime_neg_inf datetime_pos_inf
So we'd keep using the existing datetime type, and whenever we need infinity datetimes we'd just pass in the appropriate subtypes. The advantage to this is that we don't have to switch everything over to using a new derived type--just use the normal datetime for the majority of cases where we don't need inifinity dates.