News for hackers. Stuff that matters.
Re:Data Classes for Java by kazinator on Thursday November 02, 2017 @05:50PM (#15614606)
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.

There are no comments on this comment yet.