15 ms·
The argument works against any language feature, not just generics. As a aside, why not add HKTs straight with generics? The problem the Go implementors have w
by mafribe 10y ago
The argument works against any language feature, not just generics.
As a aside, why not add HKTs straight with generics? The problem the Go implementors have with generics seem to be about run-time representation (boxing or unboxed), but no additional run-time issues arise from HKTs.
The main issues of HKTs are that type inference becomes harder. Haskell's approach of eschewing type-inference at the kind level (because it's undeciable anyway) but giving unkinded type variables the kind * seems to be a run-away success.