2 ms·
Why are algebraic data types called "discriminated unions" here? Is there a subtle difference between the two or is it just that F# calls the same feature diffe
by p4bl0 2y ago
Why are algebraic data types called "discriminated unions" here? Is there a subtle difference between the two or is it just that F# calls the same feature differently than OCaml?
- Jtsummers 2y agoDiscriminated unions are one type of algebraic data types (sum and product types being the most common). The section discussing them is specifically calling out a feature related to discriminated unions (sum types) in F#, and is not about algebraic data types broadly.