3 ms·
> idiomatic to avoid macros as much as possible. Same in all lisps. The advantages of having macros vary on a case-by-case basis, but one thing is quite sure:
by rscho 2y ago
> idiomatic to avoid macros as much as possible.
Same in all lisps. The advantages of having macros vary on a case-by-case basis, but one thing is quite sure: the number of programmers collaborating on a project is inversely proportional to how much you should use macros. For a solo dev, especially when doing science-y stuff, they're invaluable.
- slaymaker1907 2y agoThat's only true of macros created for the purpose of reducing boilerplate code. However, the best macros actually reduce errors and improve code quality by enforcing invariants more than can be done without macros.