3 ms·
This 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/5764
by ncruces 3y ago
This 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.