Hacker News new | past | comments | ask | show | jobs | submit login

If anything, I’d say that due to a lack of generics, and more verbose exception handling, go codebases tend to be somewhat longer than java ones.



Go error handling is a little bit more verbose, although I find it more readable and consistent than checked exceptions in Java, that everyone seems to find a way to abuse or ignore (wrap into catch all).

Go codebases do tend to be a little shorter due to lack of getters/setters... and generics are not used that often in production codebases anyway, relative to all the rest of typical code (that’s procedural anyway).


> generics are not used that often in production codebases anyway

no.




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

Search: