2 ms·
> Lisp macros are easy to write and that means also easy to read and understand just because something is easy to write doesnt mean it's easy to read and under
by chii 5y ago
> Lisp macros are easy to write and that means also easy to read and understand
just because something is easy to write doesnt mean it's easy to read and understand - case in point : look at perl.
- didibus 5y agoFair, in this case my feelings are they are also easy to read and understand, compared to alternatives. Similar behavior implemented with text parsing, or annotation, or pre-processor, or inside the compiler, the code to implement them is a lot less tractable. Once you know how to write macros, it becomes fairly easy to also look at the implementation of a macro and figure out what it does. Macros tend to be very self-contained and often relatively short in implementation.