Hacker News new | past | comments | ask | show | jobs | submit login

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: