It seems like enums should have a way to refer to 'the base case without associated values'

I really like the .case syntax.

I just proposed it as an (imho!) cleaner solution for the is case expressions pitch

No need to create a new syntax for asking if two enums have the same base case - just give us access to a baseCase 'thing' which we can compare directly.

1 Like