3 ms·
That's completely orthogonal to ADT vs enum.
by the_duke 4y ago
That's completely orthogonal to ADT vs enum.
- SemanticStrengh 4y agoEnums enable two things: check current type from union of types and exhaustivity check in switch The former is solved by reflection, the latter by sealed classes.