2 ms·
> The claim that macros do not exist in other languages is incorrect Technically incorrect, but how many of the top 20 languages (https://www.tiobe.com/tiobe-i
by flukus 9y ago
> The claim that macros do not exist in other languages is incorrect
Technically incorrect, but how many of the top 20 languages (https://www.tiobe.com/tiobe-index/ https://www.tiobe.com/tiobe-index/) have c style macros? I don't think many of them have a pre-processor at all.
- cjensen 9y agoAt least 20% of those languages have macros (the three C-derived languages and Assembly). You don't need to have a pre-processor to have macros. Some of those languages, like Python and C#, have advanced features which eliminate much of the need for macros. Others, like JavaScript and SQL, would be much improved by assembly-language or Lisp style macros.