3 ms·
As it turns out, you can have a powerful macro system without s-expr syntax (e.g. Scala, Nim). In any case, you jus need to write functions that operate over tr
by pathsjs 8y ago
As it turns out, you can have a powerful macro system without s-expr syntax (e.g. Scala, Nim). In any case, you jus need to write functions that operate over trees, which you can do in any language. That this tree is not immediately reflected in the actual syntax is just a minor hindrance
- yvdriess 8y agoWriting non-trivial macros in Scala or Nim will quickly liberate you of this notion.
- KingMob 8y agoPersonally, I find homoiconicity is key to easy construction of macros, and to do that, you need s-exprs (or something similar). Without that, it's certainly doable, but the result looks nothing like your non-macro code in that language.