6 ms·
Here is an issue tracking a possible fix to this: https://github.com/golang/go/issues/19412 https://github.com/golang/go/issues/19412
by maxekman 3y ago
Here is an issue tracking a possible fix to this: https://github.com/golang/go/issues/19412 https://github.com/golang/go/issues/19412
- ncruces 3y agoThis is a more recent proposal, and at this time more likely to get traction: https://github.com/golang/go/issues/57644 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.