3 ms·
Smalltalk-72 (well, Smalltalk before Smalltalk-76) did not have inheritance. And I believe Alan Kay is on record indicating he felt that inheritance in Smalltal
by cmrdporcupine 11y ago
Smalltalk-72 (well, Smalltalk before Smalltalk-76) did not have inheritance. And I believe Alan Kay is on record indicating he felt that inheritance in Smalltalk had often been misapplied or not well understood, and spoke well of Self and other experiments with classless object models.
If we're in the "OO" world, and need something analogous to inheritance, I'd rather have an object system with tools for explicit delegation over a system which tries to conflate delegation of behaviour with subtyping. IMHO this is one of the greatest uglinesses of Java (C++ has it too but it's not used much these days.)
- chimeracoder 11y agoYes, Alan Kay was very clear that he does not believe inheritance to be a key part of object-oriented programming. > OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. It can be done in Smalltalk and in LISP. There are possibly other systems in which this is possible, but I’m not aware of them. For context, he said this in 2003, at the height of Java's popularity.
- cmrdporcupine 11y agoYeah I also seem to remember him saying (maybe on a Squeak mailing list or somewhere else... many moons ago when I followed this kind of thing) that Smalltalk 72 was his personal favourite Smalltalk.
- e12e 11y agoReminds me of Newspeak: "Why is it called Newspeak? In Orwell's novel 1984, Newspeak was a language that grew smaller over time. Unlike the case of natural languages, for a programming language this is actually a good thing. It is an ideal we strive for - a shrinkable language." http://www.newspeaklanguage.org/ http://www.newspeaklanguage.org/
- JulianMorrison 11y agoErlang probably also counts.
- cmrdporcupine 11y agohttp://blog.blainebuxton.com/2003/09/erlang-i-got-following-reply-from-alan.html http://blog.blainebuxton.com/2003/09/erlang-i-got-following-... Kay says: Erlang is worth looking at.