66 ms·
> as opposed to OO where you have the data declared next to the functions that mutate it. In the popular OO languages. As usual, the Common Lisp Object System
by Tomte 6y ago
> as opposed to OO where you have the data declared next to the functions that mutate it.
In the popular OO languages. As usual, the Common Lisp Object System is always worth a look. You have classes that encapsulate data, and then you have "free" generic functions (well, methods that implement those generic functions) that operate on that data.
- kaba0 6y agoHow does that enforce class invariants?