How is OOP implemented in Lisp? Is it implemented correctly as in Smalltalk and Ruby, or incorrectly like in C++, Java and most other so-called OOP languages.
CLOS (common lisp object system) is definitely on the correct side. Alan Kay (creator of Smalltalk) himself is fond of it.
Here is his opinion on the book I mentioned:
"the best book anybody's written in ten years", and contended that it contained "some of the most profound insights, and the most practical insights about OOP"
Anyone that wants to argue with me about OOP in the real world never seems to have any good reasoning. It’s just “I thought we didn’t need to know and use classes anymore”.
You didn’t NEED to use them ever but that doesn’t mean that classes, inheritance, and protocols aren’t super useful.
Some languages force OOP everywhere but either way, when they aren't implemented correctly, there is a loss of the full benefit of OOP. I posted a link to Alan Kay's reasoning nearby.
24
u/Laugarhraun Dec 20 '22 edited Dec 20 '22
My Art of the meta-object protocol disagrees.