4 ms·
IMO, what C++ brings to the table is mainly everything that follows as a consequence from RAII. And RAII, that's just some syntax to make writing badly structu
by jstimpfle 5y ago
IMO, what C++ brings to the table is mainly everything that follows as a consequence from RAII.
And RAII, that's just some syntax to make writing badly structured programs practical. Because it does the tedious parts of matching "parentheses", it allows you to use a lot of them, without consideration if you could refactor the program to get away with fewer of them.
RAII also comes at the cost of requiring or encouraging "features" like exceptions and all the good stuff like copy/move constructors and what not. All highly non-orthogonal language features that require lots and lots of special cases and extra boilerplate.