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

As someone working at google, I had never written go code, but I had read quite a bit about how how people didn't like it on places like hn. My impression was that even though personally I would strongly prefer a more typed language like rust, the deficiencies of go were probably overblown.

Then I recently had to write a small amount of go code... and I found out that go doesn't support enums....... what??? Just blew my mind.



There's a huge discussion here, if you're interested: https://github.com/golang/go/issues/19814

TBH I thought adding enums was a cut and dried case until reading through some opposing opinions. Now I'm not so sure.


In other words, go has somehow managed to shoehorn themselves into a language so rigid that adding pretty basic correctness features comes with serious downsides.

This is not a selling point for the language.




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

Search: