3 ms·
I’m surprised go didn’t add real enums before generics. This seemed to be much more orthogonal to the type system, and blend well with the language. I guess the
by bsaul 5y ago
I’m surprised go didn’t add real enums before generics. This seemed to be much more orthogonal to the type system, and blend well with the language. I guess there was caveat i’m not aware of.
- pjmlp 5y agoIt is another thing that original team isn't found of. Rob Pike has some posts on gonuts where he asserts the current approach is good enough.