Mastering Development

What is the effect of parenthesis when using tuples in discriminated union cases?

The discriminated union syntax as defined by Microsoft documentation does not include parenthesis. The following definition allows me to use field names in the type definition and is compatible with the syntax in the documentation. type Node<‘T> = L of value:’T | N of value:’T * children:Node<‘T> list This definition: type Node<‘T> = L of […]