What could you do with row polymorphism that you couldn’t do with generic functions that take slices in Go?
I think Go interfaces are row-polymorphic aren't they? I'm also wondering what the difference between row-polymorphism and ad-hoc polymorphism (a la C++ templates) is.
When you want to abstract on structs "having" a given field (by name) of a given type, I think. Although that may come in Go at some point.
[flagged]
I think Go interfaces are row-polymorphic aren't they? I'm also wondering what the difference between row-polymorphism and ad-hoc polymorphism (a la C++ templates) is.