Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cat-whisperer
· 4mo ago · 0 comments
does go have enums?
Comments
[–]
adrianmsmith
4mo ago
No
[–]
pkal
4mo ago
One reason that Go doesn't have sum/union types, from
https://groups.google.com/g/golang-nuts/c/0bcyZaL3T8E/m/eL4r...
, is that it is not apparent how this would mesh with Go's "meaningful zero value" stance.