News for hackers. Stuff that matters.
Re:Decorators in Go using embedded structs by weberc2 on Wednesday October 23, 2019 @01:54PM (#21337079)
> Inheritance with embedding is a false friend in Go. Stick to composition.

Note that this applies to every language with inheritance. Composition is _always_ better.

Re:Decorators in Go using embedded structs by AYBABTME on Wednesday October 23, 2019 @02:04PM (#21337177)
I don't disagree. I just think it's particularly bad in Go.
Re:Decorators in Go using embedded structs by pm90 on Wednesday October 23, 2019 @03:49PM (#21338183)
Do you say this specifically because of struct embedding?