2 ms·
DEFINE-CLASS and DEFINE-METHOD are very thin wrappers over DEFCLASS and DEFMETHOD. Rewriting the code using standard CL would not make it substantially longer.
by lisper 8y ago
DEFINE-CLASS and DEFINE-METHOD are very thin wrappers over DEFCLASS and DEFMETHOD. Rewriting the code using standard CL would not make it substantially longer. All those macros really do is rearrange the parens (because I can never remember where the parens go in the standard versions).
DM is called DM rather than DUMP-MEMORY because it was used for debugging and typing DM over and over was a lot less annoying than typing DUMP-MEMORY.
As for the use of MACROLET, there is nothing non-standard or unconventional about it.
The definitions of DEFINE-CLASS and DEFINE-MACRO, along with documentation (and a whole bunch of other stuff) can be found here:
https://github.com/rongarret/ergolib https://github.com/rongarret/ergolib
Specifically:
https://github.com/rongarret/ergolib/blob/master/core/ergoclos.lisp https://github.com/rongarret/ergolib/blob/master/core/ergocl...
- reikonomusha 8y agoTo be clear, I am not saying any of the decisions were irrational. As a CL programmer myself, I could read it just fine. But things like “thin wrappers” and abbreviations to accommodate personal taste lead to an eclectic and unidiomatic style.
- lisper 8y agoCL itself is rather eclectic, so I guess I'll take that as a compliment :-)