Re:Go is boring, and that’s fantastic
by cellularmitosis on Thursday July 02, 2020 @08:34PM
(#23719728)
Yeah, I think the confusion stems from the word "enum" being used to mean different things in different langs.
A great illustration lies in comparing enums in Objective-C (essentially just named integers), whereas the associated values in Swift enums make them "Sum" types.
A great illustration lies in comparing enums in Objective-C (essentially just named integers), whereas the associated values in Swift enums make them "Sum" types.