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

I work on several languages professionally being the only one without exceptions Go and I don't see how its idiotic pattern of checking the value returned after every single call is a massive improvement on anything except masochism.


Go's "error" system is nothing like Rusts. I personally find Go's terrible and boilerplate-y.

Rust's uses algebraic types to make things checked at compile time and uses operators like `?` to give you expressiveness while removing the overhead and annoyance of manually checking everything. It is a huge improvement.


I dislike Go's error handling too. Rust solved this neatly with question mark operator (previously implemented as try!() macro).




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

Search: