rfc:tagged_unions
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
rfc:tagged_unions [2020/12/04 23:04] – created crell | rfc:tagged_unions [2020/12/05 20:21] – crell | ||
---|---|---|---|
Line 22: | Line 22: | ||
A case with an associated value is called a Tagged Case. An Enum Case that does not have associated values is called a Unit Case. | A case with an associated value is called a Tagged Case. An Enum Case that does not have associated values is called a Unit Case. | ||
- | Tagged cases are mutually exclusive with Primitive-Equivalent | + | Tagged cases are mutually exclusive with Scalar |
Associated values are defined using constructor property promotion. | Associated values are defined using constructor property promotion. |
rfc/tagged_unions.txt · Last modified: 2023/01/18 18:40 by crell