News for hackers. Stuff that matters.
Re:Go Enums Still Suck by grey-area on Thursday March 28, 2024 @07:47AM (#39850002)
But if you want brevity you could just use types!

https://go.dev/play/p/uUNHxM8zqY9

Not sure I understand what this adds over a list of plain old types.

Re:Go Enums Still Suck by sethammons on Thursday March 28, 2024 @07:51AM (#39850045)
This is the right answer - there should be a planet type.