Add Unit, Union, Option as comparable types
This MR adds unit
as a comparable type and closes comparable types under option
and or
.
Comparing Unit
s always return 0
, but it's useful when unit
appears in a more complex type.
For options, None
is smaller than Some
s.
For unions, Left
s are smaller than Right
s.
This is a redo of the third part of nomadic-labs/tezos!131 and is based on cryptiumlabs/tezos!65
Tasks:
-
Merge cryptiumlabs/tezos!65 -
Rebase -
Tests -
Documentation
Edited by Mehdi Bouaziz