Re:Why I like Golang's interfaces
by adonovan on Thursday April 13, 2017 @12:17PM
(#14108319)
Also, a []Fooer supports the operation of storing any element assignable to Fooer, whereas a slice []fooint does not support that operation, so it makes sense that a []fooint cannot be used anywhere a []Fooer can.
[ Parent
| on HN ]