I think Extent() should return a valid Interval, not nil. The current behavior causes bugs like the one solved by https://github.com/google/go-intervals/pull/3. To get a valid Interval out of an empty set, we will want to make the set constructors take an Interval factory of some kind.
I think Extent() should return a valid Interval, not nil. The current behavior causes bugs like the one solved by #3.
To get a valid Interval out of an empty set, we will want to make the set constructors take an Interval factory of some kind.