Hacker News new | past | comments | ask | show | jobs | submit login

I disagree that exceptions are better in most cases. Exceptions aren't captured effectively in most type systems so it's hard to ensure you've covered all your bases. When used effectively, discriminated unions for return types force you to handle all the cases and the result is much more robust in my experience.



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

Search: