3 ms·
Macros in good code bases are incredibly useful to abstract things away. Usually achieving things that functions can't. When working in large code bases with l
by Sean-Der 12y ago
Macros in good code bases are incredibly useful to abstract things away. Usually achieving things that functions can't.
When working in large code bases with languages that don't have macros I find myself seeing people trying to accomplish the same task, but in subtly different ways. These are cases where a helper function usually would not reduce the LOC or complexity.
As with everything, macros can be bad, but I wouldn't be so quick to ban them outright.