Re:Go 1.27 Interactive Tour
by cat-whisperer on Sunday August 02, 2026 @02:21AM
(#49141655)
does go have enums?
[ Parent
| on HN ]
Re:Go 1.27 Interactive Tour
by adrianmsmith on Sunday August 02, 2026 @03:43AM
(#49142062)
No
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.