Lisp / Clojure: Is it a good idea to write function generating macros?
问题 This question asks to create a Clojure macro to generate several functions. We figured out a way to do this but were stuck with the question of "Is this a good idea?". My initial reaction is not really , for two reasons You then have functions that are not defined in your code, and this can complicate understanding your code quite a bit! (Imagine somebody has a problem with one of your functions and looks at the source code only to not find it anywhere). It is better to factor out the