Hacker News new | ask | show | jobs
by barrkel 3548 days ago
The tag in Pascal is (a) optionally stored (only the type of the tag is needed to distinguish between the different variants in the declaration, the field can be omitted) and (b) not actually strongly typed (that is, the tag is not consulted before access to one of the variants is made).

It is however a fine way to encourage sensible use of unions. But it's mostly just a suggestion.