Re: "Auto-sync" questions

2014-01-28 Thread Marijn Haverbeke
> Unfortunately I cannot rely on all access going through the writers > specified in the slot definition. Unfortunately there is a great deal of > existing code that uses (setf slot-value), with-slots, etc. in this > codebase. Ew. Sounds like sed or M-x replace-regexp might the most sane solution

Re: "Auto-sync" questions

2014-01-28 Thread Eli Naeher
Hello, I definitely understand your concerns about magic here--I'd prefer the explicit Postmodern approach for sure if I were starting from scratch. Unfortunately I cannot rely on all access going through the writers specified in the slot definition. Unfortunately there is a great deal of existin

Re: "Auto-sync" questions

2014-01-28 Thread Marijn Haverbeke
Hi Eli, I really want to stay as far away from the kind of magic that is giving database abstactions a bad name. So I don't really think *db-auto-sync* is a feature that fits in Postmodern. Doesn't looping over the slots in your class, and defining :after methods on their setters, solve this with