Embedding instead of inheritance in Go

Casebash picture Casebash · Nov 13, 2009 · Viewed 27.4k times · Source

What is your opinion of this design decision? What advantages does it have and what disadvantages?

Links:

Answer

Alex Martelli picture Alex Martelli · Nov 13, 2009

The Gang of 4's crucial principle is "prefer composition to inheritance"; Go makes you follow it;-).