DEV Community

Discussion on: Polymorphism for Go slices

Collapse
 
vicentdev profile image
Vicent

Wow, yes, I think I tried to use polymorphism on the wrong way. The problem I see with that implementation is the elements in the slice can be another type that implements the same interface.