3 ms·
As others have said, it depends on your context. If you need to be able to maintain tight control over resource usage, for example, RAII creates challenges. It
by bunderbunder 8y ago
As others have said, it depends on your context. If you need to be able to maintain tight control over resource usage, for example, RAII creates challenges. It can also be a bit of a chore to think about if you're doing interop with other languages.
I've come to think of C++ as the tiktaalik of programming languages: It can live in two environments, and was an important evolutionary step in transitioning from one to the other. But, ultimately, it embodied so many design compromises that it was never going to be ideally suited to either of them.