Yeah, I've thought about this a lot with Rust. Rust abstractions are basically all functions and you really need to inline them, but debug builds don't inline.
I've wondered whether doing some amount of inlining + GVN in MIR in debug builds can solve this dilemma.
Quote Tweet
Anyway, the problem many of us complain about with C++ isn't a fundamental problem of modern languages. It's not even _really_ about library-based abstractoins!
It's that C++ only offers runtime-oriented tools like functions for implementing compile-time abstractions.
Show this thread
2
4
71

