Re:Compile-time safety for enumerations in Go
by kiitos on Saturday September 30, 2023 @12:03AM
(#37712681)
It literally isn't enforced by the compiler, because I can compile code which is invalid.
[ Parent
| on HN ]
Re:Compile-time safety for enumerations in Go
by gabereiser on Monday October 02, 2023 @08:58AM
(#37737486)
It’s not invalid because a string is a string. You didn’t invent a new type.