by noncoml · 9y ago · 0 comments
Go already has struct obviously ( product types) so all it would need is sum types, which is only a bit more elvolved than its current enums. Of course, you woulf need enum’s cases to be of different types, but at least from a user pov it doesn’t seem to involve generics, does it ?