Re:Decorators in Go using embedded structs
by skybrian on Wednesday October 23, 2019 @11:31AM
(#21335648)
Yes, that usually would work, but it's more error-prone than composition, because there may be calls in the base class to the method you overrode. You could even inadvertently create infinite recursion.
[ Parent
| on HN ]
There are no comments on this comment yet.