The word “union” has a standard meaning in mathematics. And is there any language other than Rust that calls sum types “enums”?
Yeah, `sum` would be bad as a keyword. Perhaps `variant`?
The word “union” has a standard meaning in mathematics. And is there any language other than Rust that calls sum types “enums”?
Yeah, `sum` would be bad as a keyword. Perhaps `variant`?