← Back to context

Comment by kazinator

3 years ago

The culture around macros should be that if you're making any kind of halfway complex library, you better have macros to simplify the common uses, and make the code shorter and more readable.

The users of the library having to write those macros is the negative situation; anticipate the kinds of macros users will want, and provide them.

If you use general macros over basic Lisp, try to use famous ones. E.g. for gensyms, use with-gensyms. If you don't use Norvig's or Graham's exact implementation, at least make yours 100% compatible.