Questions tagged [union-types]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
4 answers

What are pros and cons of tagged vs untagged union-types?

Some languages accept untagged union types (C++, C, etc): union Something { char ch; int i; }; Some languages accept tagged union types (like Haskell). ...
чистов_n - за Россию's user avatar