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

Fair enough. I would say if the way someone uses the Go "enum pattern" is causing them to have issues with type safety then their code could probably use a refactor, but the point does stand.



How is it possible to use the Go "enum pattern" without having issues with type safety? It's inherently not type-safe at all.


By "issues" I mean software defects.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: