News for hackers. Stuff that matters.
Re:Safer Enums in Go by masklinn on Saturday May 14, 2022 @10:02AM (#31378016)
C# does not have sum types.

It has "enumeration types" but their behaviour is exactly that of C's, with various additional conveniences but critically (and unlike Java for instance) no more type-safety.

There are no comments on this comment yet.