logoalt Hacker News

ameliustoday at 5:13 PM2 repliesview on HN

Shouldn't the preprocessor be fixed, if it trips that easily on common C++ constructs?


Replies

marginalia_nutoday at 5:33 PM

Preprocessor is just doing text transformations on the sources.

It's not really something that can be fixed, other than moving away from the preprocessor and putting metaprogramming capabilities into the language itself (which C++ has been doing).

show 1 reply
tom_today at 5:16 PM

I'm sure the standardization committee are always looking for fresh ideas!