News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.