News for hackers. Stuff that matters.
Re:Safer Enums in Go by kibwen on Saturday May 14, 2022 @02:21PM (#31380781)
If I were designing a language I'd call them or-types, to indicate a type that is "this OR that", as distinct from and-types, which are "this AND that". The product vs. sum terminology strikes me as needlessly forbidding, although it is undoubtedly cute that one can extrapolate algebraic data types to calculus and such.

There are no comments on this comment yet.