Comment

Comment by jake_morrison

Python's OOP is not superior to CLOS. CLOS is very full-featured. Python's OO does support features like multiple inheritance, which makes it more sophisticated than e.g. Java.

One CLOS feature that is particularly interesting is multi-dispatch. When you call a method, most languages implement polymorphism by looking at the class of the object and call the corresponding method in the class. In CLOS, it looks at all the parameters of the method. This is similar to pattern matching in functional programming languages like Elixir.

https://lispcookbook.github.io/cl-cookbook/clos.html

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton