Composition over Inheritance in Go

added by DotNetKicks
1/3/2019 3:19:21 PM

1 Kicks, 501 Views

I've always admired languages that make composition as easy as inheritance. Groovy, with its @Delegate, is one example from years ago. These days I've been working a bit with Go. In Go, the composition features are so good you can achieve everything you need using compositional thinking.