A closed set of names, such as the kinds of events or the abort reasons:
each name as a member of its own, every value in the order declared, and a
check that reads a value back from its text.
The type of a value of the set is the union of its values, written as the
specification writes them, so a value compares with a string literal and
narrows a discriminated union as any literal does.
A closed set of names, such as the kinds of events or the abort reasons: each name as a member of its own, every value in the order declared, and a check that reads a value back from its text.
The type of a value of the set is the union of its values, written as the specification writes them, so a value compares with a string literal and narrows a discriminated union as any literal does.