4 ms·
Macros are very helpful for making many things. There are some problems with how macros are working in C, but it is also beneficial sometimes. One thing that C
by zzo38computer 3y ago
Macros are very helpful for making many things. There are some problems with how macros are working in C, but it is also beneficial sometimes.
One thing that C does not have something like METAFONT's "vardef"; if you have "scoped macros" that can be declared as global or local variables and as members of structures, it would cause less interference than the current system and can even sometimes provide other benefits too.
Others include e.g. possibility for macros to define other macros (probably several other programming languages have such a thing), for appending to existing definitions (like {append} in Free Hero Mesh), for altering existing macros with a value calculated immediately instead of each time the macro is called (like {edit} in Free Hero Mesh), etc.