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

For careful error handling, my favorite language is Go. It lacks exceptions, so you have to return errors as in C. But it has python-style tuple return, making it easy to return a value or an error from any function.

The fact that errors are explicitly returned requires the programmer to explicitly handle them, which encourages design that considers error handling.

The evil of exceptions is they hide errors until they happen.



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

Search: