Not a hard question. It’s sum types! (Or enums, tagged unions, or whatever you want to call them).