3 ms·
The author does address that in the article: > However with great power comes great responsibility, so you should learn to use them with great care. For exampl
by wtbob 11y ago
The author does address that in the article:
> However with great power comes great responsibility, so you should learn to use them with great care. For example, while a JSON reader was a good exercise in understanding reader macros, I would never use it in real world for the simple reason that easier alternatives already exist.
and:
> There is a saying that goes along these lines: where a function will do, don't use a macro. A corollary for reader macros could be: where a sexp will do, don't use a reader macro. Yes, it might be a subjective call, but think twice before using a reader macro.
The second is particularly spot-on: sometimes you need a reader macro, but often you don't. But when you do…you do.