4 ms·
Ok, so what else is it? My understanding that the new Go language is not officially called object-oriented because it supports only interfaces and not inheritan
by ahk 17y ago
Ok, so what else is it? My understanding that the new Go language is not officially called object-oriented because it supports only interfaces and not inheritance or type hierarchy.
- blasdel 17y agoGo has true message passing, which is far more important to OOP than anything to do with data modeling, and Go's composition model for data is far more object-oriented than the usual Linnaean classicism. Pay attention to Alan Kay, not Stroustrup or Gosling. If you really want to know what OOP is / was / can be, read Cardelli and Abadi's A Theory of Objects. The first half is available online, and covers the parts you'd care about: http://books.google.com/books?id=4xT3LgCPP5UC http://books.google.com/books?id=4xT3LgCPP5UC