top | item 37706018

(no title)

maxekman | 2 years ago

Here is an issue tracking a possible fix to this: https://github.com/golang/go/issues/19412

discuss

order

ncruces|2 years ago

This is a more recent proposal, and at this time more likely to get traction: https://github.com/golang/go/issues/57644

As stated in that proposal, the interaction between what people want from “enums,” “discriminated unions,” “sum types,” (as well as “optional values” and “nil safety”) and fundamental Go tenets like zero values, make this a tough sell, which is very likely to make no one happy.