News for hackers. Stuff that matters.
Re:Go 1.27 Interactive Tour by cat-whisperer on Sunday August 02, 2026 @02:21AM (#49141655)
does go have enums?
Re:Go 1.27 Interactive Tour by adrianmsmith on Sunday August 02, 2026 @03:43AM (#49142062)
No
Re:Go 1.27 Interactive Tour by pkal on Sunday August 02, 2026 @04:18AM (#49142249)
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.