News for hackers. Stuff that matters.
Re:Compile-time safety for enumerations in Go by paulddraper on Friday September 29, 2023 @06:23PM (#37710808)
It is the case under certain conditions.

Casting is by definition an escape hatch.

Re:Compile-time safety for enumerations in Go by kiitos on Friday September 29, 2023 @08:12PM (#37711633)
Casting (in the way I did it in my example) is entirely normal and common and in no way an escape hatch.
Re:Compile-time safety for enumerations in Go by paulddraper on Friday September 29, 2023 @10:13PM (#37712242)
Ask yourself: what does casting do?