News for hackers. Stuff that matters.
Re:What I'd like to see in Go 2.0 by cle on Friday February 04, 2022 @03:10PM (#30212328)
I would be okay with an open-by-default enum type. (I think...I'm not sure I've ever encountered a language with open-by-default enums.)

I'm still not sure if it's worth it, it's idiomatic Go to "fall-through" if-branches for default cases, which is the same when checking quasi-enums. The symmetry is nice and makes it very easy to read. But I could be convinced.

There are no comments on this comment yet.