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

> Go's approach is to make error handling something you have to think about for virtually every line of code

But that doesn’t work, and you can’t handle every error at the place of its origin.



Seems to me like it does work, based on many successful projects using it. There's nothing that forces you to handle the error at the place of origin, you can pass it on like you do with exceptions. You just can't bubble it up multiple levels.




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

Search: