3 ms·
Aren't macros a just form of code generation?
by tarruda 6y ago
Aren't macros a just form of code generation?
- mpereira 6y agoHey Thiago! You are mentioned in the essay that contains the article in this HN post btw :) Check out the Neovim section in https://www.murilopereira.com/how-to-open-a-file-in-emacs/#the-values-of-emacs https://www.murilopereira.com/how-to-open-a-file-in-emacs/#t...
- tarruda 6y agoHi Murilo, thanks for the mention :)
- Scarbutt 6y agoAren't cars just a form of transportation? (sometimes cars are just more convenient than walking)
- PuercoPop 6y agoYes, but they are an 'in-process' form of code generation. The distinction is important. Especially when you are extending the system on the fly. A lot of the pain regarding JS build-systems could be avoided with macros (and reader macros/a customizable reader). Babel is literally macros + a reader.