3 ms·
Fair, in this case my feelings are they are also easy to read and understand, compared to alternatives. Similar behavior implemented with text parsing, or anno
by didibus 5y ago
Fair, in this case my feelings are they are also easy to read and understand, compared to alternatives.
Similar behavior implemented with text parsing, or annotation, or pre-processor, or inside the compiler, the code to implement them is a lot less tractable.
Once you know how to write macros, it becomes fairly easy to also look at the implementation of a macro and figure out what it does. Macros tend to be very self-contained and often relatively short in implementation.