2 ms·
It's simple in typesafe languages that support generics/parametric polymorphism That's a different thing. The function is then instantiated to that particular
by danieldk 14y ago
It's simple in typesafe languages that support generics/parametric polymorphism
That's a different thing. The function is then instantiated to that particular type. []interface{} is more akin to an array of base class pointers. Except that in Go the type is stored with the pointer to the actual data.