3 ms·
Macros have their problems, but automated code generation is almost always worse. In any case, I would like to point out that there are other answers to the pr
by js8 9y ago
Macros have their problems, but automated code generation is almost always worse.
In any case, I would like to point out that there are other answers to the problem than macros. For example, Haskell has lazy evaluation, currying and strong type system, and many use cases for macros can be implemented just as ordinary functions.