2 ms·
I've often wondered why C++ hasn't deprecated the preprocessor yet. D has hygienic replacements for all the things the C preprocessor does (except the nutburger
by WalterBright 4y ago
I've often wondered why C++ hasn't deprecated the preprocessor yet. D has hygienic replacements for all the things the C preprocessor does (except the nutburger stuff), and we're quite happy with that.
- KerrAvon 4y agoMy guess is that they won't because it would dramatically decrease the subset of code that is both valid C and valid C++ in many environments. As you are no doubt aware, most C -- not all, and not with perfectly preserved semantics -- is valid C++ in practice. I think the C committee would have to do something first. But I'm only an outside observer.
- WalterBright 4y agoC has already added things not in C++, like _Generic.