3 ms·
Is there any non-legacy reason to have macros in C++? I've been coding C++ now for over 3 years, and as soon as I learned all the features (especially templates
by andymorris 16y ago
Is there any non-legacy reason to have macros in C++? I've been coding C++ now for over 3 years, and as soon as I learned all the features (especially templates), I have never needed them again. Indeed, I despise them, because they break debuggers and can conceal bugs easily.
I'd like to see an example, if anyone has one.
But for me, the template system is the best thing about C++ - they are much closer in functionality to Lisp macros than preprocessor macros are!!