by bradrn · 4y ago · 0 comments
> 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.
[http://userpage.fu-berlin.de/~ram/pub/pub_jf47ht81Ht/doc_kay...]
His reference to ‘LISP’ is, of course, referring to CLOS.
Definitely not. The all-caps "LISP" should be the strongest hint, but he name drops McCarthy and Carl Hewitt. McCarthy's LISP didn't have closures, so I'm thinking Alan is referring to something closer to Scheme. Which might make sense as Scheme is based on ideas from Hewitt (actors, message passing, etc.). But Alan isn't being terribly specific. You have to understand there are thousands of different "LISP" systems in the world. Many of which are just in some thesis or white paper.
> Depending on your definition, CLOS is or is not object-oriented. It doesn't support encapsulation.
Lack of encapsulation would preclude the protection and hiding of state-process.
One way to "privatize" slots or methods is to put them in a special package, which serves as a private namespace. This doesn't prevent programmers from seeing them but it can flag any use of them as "odd" style in the source code.