logoalt Hacker News

WalterBrightyesterday at 4:09 PM1 replyview on HN

You can definitely make an incomprehensible soup out of C++ templates. C++ expression templates are a classic example. But the threshold of this is much higher than with a macro language.

Using C++ templates for a linked list type doesn't make a mess.


Replies

ueckeryesterday at 10:40 PM

I am not sure, I quite like the new C macro-templates. I also do not think the implementation is messy. Can you narrow down specific aspects where you think using macros for this is problematic?