3 ms·
Providing no stable ABI and not being easy to bind to in general is really a major pain point of C++ for library/framework code. In contrast everyone and their
by catdog 10y ago
Providing no stable ABI and not being easy to bind to in general is really a major pain point of C++ for library/framework code. In contrast everyone and their dog is able to call into C in practice which is, I assume, a not to be underestimated reason why it is still so popular, even for code not leveraging its low level nature. Rust is really interesting here as they have chosen to make it more than an afterthought to provide compatibility.
> I concede that the extra language complexity of C++ over C could be a disadvantage, but in my mind that doesn't outweigh the benefits.
It's a problem, C++ is so insanely complex, full of magic which is hard to grasp and provides more ways to shoot yourself in the foot than to do it right (modern C++ seems better in some regards but still…). C is often chosen because people want sth. reasonable simple so I think a language fitting in between, being richer than C but still fairly comprehensible would be nice.