4 ms·
Why generics, indeed? There must be an answer to this, but I've never seen a good response to why they aren't implementing parametric types and (single-paramet
by Filligree 7y ago
Why generics, indeed?
There must be an answer to this, but I've never seen a good response to why they aren't implementing parametric types and (single-parameter) typeclasses instead.
Simplicity? Yes, but generics are hardly any simpler.
- silasdavis 7y agoPerhaps I'm misunderstanding, but I would have thought go already implements typeclasses and this proposals extension to the interface semantics is a parametric typeclass? Would you mind elaborating?
- mda 7y agoFor me, generics make api designer's life harder, but api user's life easier. A good enough reason for me.