3 ms·
Oh, I know. Elm is far more elegant in that regard. But just because I have to "switch on" exhaustiveness checks doesn't mean they don't exist.
by dahauns 9y ago
Oh, I know. Elm is far more elegant in that regard.
But just because I have to "switch on" exhaustiveness checks doesn't mean they don't exist.
- dmitriid 9y agoThing is, it only works in if and switch statements, you have to be aware of it (I don’t think you can deduce it from docs), and you have to manually trigger it. It’s ”poor man’s exhaustiveness” and TS will hopefully get better at this