3 ms·
Are the matches closed, enabling errors or warnings, when all the cases aren't matched on? Otherwise it just seems like some sugar on switch. Also, guarded ma
by platz 12y ago
Are the matches closed, enabling errors or warnings, when all the cases aren't matched on?
Otherwise it just seems like some sugar on switch.
Also, guarded matches would be nice.
- Locke1689 12y agoThis is in "open questions." Even without language support requiring exhaustion, this would be a pretty obvious Roslyn custom diagnostic to be introduced.
- louthy 12y agoI think if it could be switched between a compile time error/warning then we'd be in a great place. I think even in Haskell you need to switch it on as a compiler option.