re: Is “Defensive Programming” actually healthy? VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION

Point taken. As for your question, I’m not sure which language besides TS supports checking exhaustiveness. Btw, I had copied the gist link incorrectly in the solution part of the article. You can now see the use of the never type. Woopsie!

code of conduct - report abuse