3 ms·
Result isn’t an enumeration of sorts?
by nynx 5y ago
Result isn’t an enumeration of sorts?
- infogulch 5y agoNo, Go doesn't have discriminated/tagged unions or valued-enumerations or whatever you want to call them, but generics let you hack them in without much trouble. Personally I'd take ADTs over generics any day, but it's not a dichotomy maybe we'll still get them some day. https://github.com/golang/go/issues/19412 https://github.com/golang/go/issues/19412