3 ms·
The thing about CLOS accessors is that they define methods; they are not just for the sake of having the (setf (foo obj) val) shorthand. By saying that you hav
by kazinator 9y ago
The thing about CLOS accessors is that they define methods; they are not just for the sake of having the (setf (foo obj) val) shorthand.
By saying that you have an accessor x, you're writing a method called x. Actually two: x and (setf x).
You can write auxiliary methods for these: with :around, :before and :after methods you can intercept the accessor calls to do "reactive" kinds of things.