
29 Mar
2010
29 Mar
'10
10:26 p.m.
Stefan Seefeld wrote:
I strongly disagree on this. Wasn't one perceived drawback of Boost its use of macros ? The main reason for the use of macros seems to me to be to work around deficient compilers, i.e. portability.
Probably not the best place in this long thread to say this, but I don't see what's wrong with macros. They're a great way to generate code in ways that are impossible with templates (and are sometimes faster as well) and can really help in reducing code duplication. Granted, they're a bit hard to use, but sometimes they're worth it. The fact most programmers don't know the preprocessor is not a good reason to ban its usage.