Hacker News new | ask | show | jobs
by Filligree 2514 days 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.

2 comments

For me, generics make api designer's life harder, but api user's life easier. A good enough reason for me.
Perhaps 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?