Open JohannesMoersch opened 4 years ago
Obvious comparison cases...
Option.Some(a) == Option.Some(b)
a == b
Option.Some(a) > Option.Some(b)
a > b
Option.Some(a) < Option.Some(b)
a < b
Option.None == Option.None
Are we considering Option.Some(...) > Option.None?
Option.Some(...) > Option.None
... or make calling code specify a strategy for ordering Option.None<T> relative to Option.Some<T>?
Option.None<T>
Option.Some<T>
Obvious comparison cases...
Option.Some(a) == Option.Some(b)
whena == b
Option.Some(a) > Option.Some(b)
whena > b
Option.Some(a) < Option.Some(b)
whena < b
Option.None == Option.None
Are we considering
Option.Some(...) > Option.None
?