This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
replace enums with unions #8
Open
Description
See https://soc.me/languages/unions.
This involves
- add keyword
union
- parse union syntax
- add AST representation
- implement type-checking
- decide how to represent matching on unions in bytecode
- implement runtime behavior
- remove
enum