Hacker News new | past | comments | ask | show | jobs | submit login
Mindfulness in TypeScript code branching, or how to if/else (monadical.com)
6 points by Firfi 3 months ago | hide | past | favorite | 1 comment



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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: