3 ms·
Changing a macro you own > forking a macro library > forking a transpiler > forking the language. I admit I never worked with Babel on the plugin-writing side,
by TeMPOraL 8y ago
Changing a macro you own > forking a macro library > forking a transpiler > forking the language.
I admit I never worked with Babel on the plugin-writing side, but that sounds much more complex than writing macros.
With Clojure macros, and Lisp macros in general, one of the important part is that they run within the same system as the rest of your code. That is, macro logic can be split out to regular functions, that will be executed at compile-time. Macros can reuse functions you wrote to be used at runtime. This property makes a language and your codebase much more coherent wrt. macro use.