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

> * Golang does away with inheritance and exceptions.

Meh,regarding exceptions you still have errors that you bubble up by returning them. It's hardly different from exceptions.

On the other hand, Go went way too minimal with its type system so much that, you can opt out with inteface{} because it's not expressive enough. I would prefer no interface {} , no reflection ,but to allow types as parameters and value.Which they are not in go.

finally, go has GOTO ... I would have gotten rid of that at first place.



> you still have errors that you bubble up by returning them. It's hardly different from exceptions.

It's completely different: you have to manually bubble them if you want them to bubble. You can perfectly not deal with them.

Yes, the initial reaction to seeing an err pop up is to return it. No, you don't have to return it.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: