Update sum-type.md

pull/664/head
Arijit Basu 10 months ago committed by GitHub
parent 859d888bde
commit 219ee68152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,8 +16,8 @@ tables just below.
Yes, they are actually sum types, i.e. they can be any of the given set of Yes, they are actually sum types, i.e. they can be any of the given set of
tagged variants listed there. tagged variants listed there.
Notice the word "be". Unlike classes or structs (aka product types), they don't Notice the word "be". Unlike classes or structs (aka product types), they can't
"have" values, they "are" (i.e. "be") the value, or rather, one of the possible "have" values, they can only "be" the value, or rather, be one of the possible
set of values. set of values.
Also notice the word "tagged". Unlike the single variant `null`, or the dual Also notice the word "tagged". Unlike the single variant `null`, or the dual

Loading…
Cancel
Save