> Sum types in general are missing from Go
Not quite. It doesn't have tagged unions, which is what I expect you are thinking of, but it does have sum types.
Only by abusing interface {}. The result is horrible.
Go doesn’t have sum types as a first class primitive.
Only by abusing interface {}. The result is horrible.
Go doesn’t have sum types as a first class primitive.