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

In most languages enum suck, it's not specific to Go, lot of pitfall and ABI issues, even my modern languages like C# have those.



Yes, enums fundamentally suck. There is nothing you can do in a language to make them not suck other than to get rid of them...

...which, indeed, is quite viable as enums are just a hack to work around a limited type system anyway.




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

Search: