logoalt Hacker News

marginalia_nutoday at 5:33 PM1 replyview on HN

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).


Replies

ameliustoday at 7:00 PM

I mean, you could extend it such that a simple comma has no special meaning.

But I agree, fewer special tricks is better and that includes the preprocessor.

show 1 reply