So, reading golang blog on slices there is a snippet by Rob Pike
A weakness of Go is that any generic-type operations must be provided by the run-time.
which I don't quite understand.
Can one rephrase same sentence?
Considering the context before and after this sentence I assume we can not program generic-type methods (consuming, let's say, slices of byte/int/float etc), but rather should use built-ins.
So, the quirkiest part for me is provided by the run-time
, - is that equals to provided by the language
?
interface{}
(empty interface) type as the most general type. – Basile Starynkevitch Apr 26 '17 at 04:29Top
type (supertype of all other types). "Generic types" usually means "parametric polymorphism", which is far more useful. – Jack Apr 26 '17 at 07:01