News for hackers. Stuff that matters.
Re:Summary of Golang Generics Discussion by egonelbre on Wednesday December 17, 2014 @03:11AM (#8761545)
Abstract things are harder to optimize than concrete things. A package for a concrete problem can be more optimized than a generic/abstract package.

I don't mean that the manually specialized version is faster than automatically specialized template. Rather that this encourages to not write abstract data-types, but rather concrete types that solve a real world problem - editor.Buffer vs. gap.Buffer. Once you have a real world problem it can optimized much better for that use case.

There are no comments on this comment yet.