4 ms·
Listen to an old man that has gotten his feet wet with Allegro Common Lisp back in the day: Avoid macros if at all possible. Use functions if you can. Special
by beders 11y ago
Listen to an old man that has gotten his feet wet with Allegro Common Lisp back in the day:
Avoid macros if at all possible. Use functions if you can.
Special forms that don't follow the standard evaluation rules are putting additional mental load on the readers of your code.
If you go overboard with macro use, good luck having other people understand your code.
If you are a lone coder, feel free to go happy-crazy with macros.
If you are a team, just stay with standard lisp as long as you can.
- sklogic 11y agoYou do not understand macros at all. One should always prefer macros to anything else. Macros must be used to implement hierarchies of composable eDSLs - by far the most powerful and advanced way to handle abstraction. Functions are not a match to this. Heavily DLSed code is much more readable and maintainable than your mess of functions.