by dreamcompiler · 7y ago · 0 comments
This is one of the things CLOS (Common Lisp Object System) got right: It's object-oriented but functions are not "owned" by classes; they're separate and first-class and generic and can dispatch on multiple arguments. In CLOS, classes are truly just user-defined types, and classes don't impede your ability to write functional code.
Compartmentalization and encapsulation are fundamental concepts of objects and those concepts existed long before "OOP" did
SELF, which JavaScript takes its model from, is definitely OOP.