← Back to context

Comment by mrpippy

13 hours ago

> slow compilation, hard to debug code, opaque and fragile code, and incredible complexity

Most people describe C++ in those terms.

Exactly. So if you're willing to accept that downside, C++ does a better job of letting you express that kind of cleverness.

  • I am not sure. I agree one should minimize macros in C, but for some things a small macro layer still beats the complexity of C++ and is not inferior in my opinion.

    • C++ templates are far cleaner, easier to debug, and produce more comprehensible errors than C macros. And C++ templates are rightly famous for being terrible at all of the above.

      5 replies →