News for hackers. Stuff that matters.
Re:Decorators in Go using embedded structs by weberc2 on Wednesday October 23, 2019 @02:26PM (#21337377)
This is often a reasonable thing to do (encapsulation). Callers don't have a right to private details, and I would go further and say that an interface value's concrete type is itself an implementation detail that callers shouldn't depend on unless the interface's documentation declares it stable.

There are no comments on this comment yet.