News for hackers. Stuff that matters.
Re:Pattern Matching with TypeScript by yen223 on Wednesday July 05, 2017 @11:56PM (#14708033)
What we want from exhaustive pattern checks is the ability to check on all cases without falling back on the "default" case. Having the compiler warn you about missing checks is a powerful thing to have.

This is easy to achieve if you're matching on a variant type, since there's only a finite number of them.

There are no comments on this comment yet.