common lisp has a with-accessors
macro which is pretty useful but it is still prone to lots of code duplication.
Is there a convenient let/binding macro that makes all accessors from a defclass
available as variables without having to name them all in advance? It would require a magical lookup of the class accessor definition at macro expansion time and I'm not sure if that's possible.
defclass
, which is in eieio? Or do you mean Common-Lispdefclass
(which I don't think Emacs Lisp has an emulation of - nocl-defclass
)? – Drew May 25 '16 at 22:49defclass
is pretty close to Common-Lisp's. – Stefan May 26 '16 at 1:21