Hacker News new | ask | show | jobs
Mindfulness in TypeScript code branching, or how to if/else (monadical.com)
6 points by Firfi 520 days ago
1 comments

Hey folks, sometimes on PRs, I find that people aren't well-versed in the intricacies of code branching. So, I wrote a short article to educate fellow engineers and point to it sometimes so I don't have to explain things over and over.

Specifically, many people apparently don't know yet about exhaustiveness and the statement/expression dichotomy and how TS type system can help with it.