Comment
Comment by mamcx
The problem with unions/enums is that is hard to pick a subset or superset of them, despite it will be not hard to add to any language. Is similar to projection on the relational model (aka:select), sometimes I need:
And other times:
This is analog to structs, where eventually is "discovered" that is nice to:
But somehow enums are still considered second-class in the algebraic type space.