News for hackers. Stuff that matters.
Re:Go Enums Still Suck by hombre_fatal on Thursday March 28, 2024 @09:10AM (#39850876)
They clearly want an enum/sum type which an array of structs (which is the trivial solution they started at) doesn't provide.

You're seeing someone try to address their issues with X and suggesting "here's how you use X." It doesn't track.

Re:Go Enums Still Suck by grey-area on Thursday March 28, 2024 @12:38PM (#39853977)
Nope, I'm saying don't use X at all, because enums are not the right thing to use to solve this problem. This solution of magic comments and a precompiler is worse than not using enums at all.