4 ms·
I think generics provide extra abstraction that Go designers want to avoid. ADTs on the other hand are ther to help you model your data better.
by noncoml 9y ago
I think generics provide extra abstraction that Go designers want to avoid.
ADTs on the other hand are ther to help you model your data better.
- weberc2 9y agoMaybe, but I don't see why better days modeling should be more valid than better abstraction. I'm not even convinced ADTs let you model you're data better than Go's interfaces; they're just safer and more convenient (and maybe more performant depending on implementation). Also, the designers have been famously unclear about their stance on generics. They certainly seem reluctant to add them, but the a good chunk of the community wants them badly and the evidence that they're useful is (perhaps unsurprisingly) mounting. The language maintainers have also been unclear about how useful generics must be to merit inclusion in the language, making it seem like they don't really intend to add generics, but they're just entertaining a conversation about generics to parry accusations that they aren't listening to their community.