Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Note that checked exceptions are essentially the same thing as returning a tagged union, from a theoretical perspective at least.

They're not popular in Java though, because the ergonomics is a lot worse than working with a Result type.



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

Search: