Something that's quite common in datetime libraries is an 'interval' type.
It's not the question whether such a thing could be implemented, but whether it is possible to define the 'just right' abstraction that supports the common use cases without being overly complex.
Questions that come to mind:
- are intervals always closed-open, or are other variants possible?
- Can intervals only exist of aware types?
Something that's quite common in datetime libraries is an 'interval' type.
It's not the question whether such a thing could be implemented, but whether it is possible to define the 'just right' abstraction that supports the common use cases without being overly complex.
Questions that come to mind: