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

I think Swift’s error model is my favorite (though Go’s new error stuff seems similar). Unrecoverable errors are unrecoverable (they’re aborts) and other errors are marked in the function’s signature and must be handled explicitly. This means the error effect is explicit along the call stack until somebody handles it


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

Search: