4 ms·
The first macro system I learned was Clojure's. Only once have I used a C style macro, and that was in my assembly class. I noticed the article mentions that s
by Havvy 12y ago
The first macro system I learned was Clojure's. Only once have I used a C style macro, and that was in my assembly class.
I noticed the article mentions that some don't like calling syntax extensions macros because of the comparison to Common Lisp macros. To that, I say that's a crazy way of thinking. Macros are necessarily dependent upon the semantics of the language they are for, so anybody who thinks that all macro systems are identical are the people who probably wouldn't go out of their way to learn a language with a non-textual substitution macro system, so changing the name for that purpose seems foolish. On the other hand, syntax-extension or syntax-transformations are a more descriptive term on their own merits.
And yeah, the diamonds are silly. Better to just color the word.