Re:Is the C++ preprocessor still needed?
by qb45 on Wednesday May 10, 2017 @04:02AM
(#14306602)
CPP is not without warts. It complicates static analysis (machine and human), for one thing. You need the definition of variable foo or function bar? Great, which one? Who made the last assignment to foo and what its value could be? Does this ifdefed snippet here count?
[ Parent
| on HN ]
Re:Is the C++ preprocessor still needed?
by tomsmeding on Wednesday May 10, 2017 @04:24AM
(#14306709)
It is also not without very legitimate uses. Feel free to not use the preprocessor if you don't want (you're still using it with `#include` though), but it is very useful for specific use cases, and there is no real reason to remove support for it.