News for hackers. Stuff that matters.
Re:What I'd like to see in Go 2.0 by mieubrisse on Friday February 04, 2022 @09:42AM (#30207303)
As amw-zero pointed out though, a user could accidentally create the int type and it would only fail if you have runtime checking (which requires you to build it, either via a custom enum constructor that returns `error` or an `IsValid` function, which then require you to maintain the ValidEnums list).

Int types also don't give you any guards when deserializing.

There are no comments on this comment yet.