Re:Why the C++ standard ships every three years
by jdsully on Saturday July 13, 2019 @06:14PM
(#20430496)
Which features are painful?
Aside from exceptions (Can't use them safely if RAII is not universal) and shared pointers, most new language features are pretty localized in effect. E.g. using a lambda in a function originally written in C++98 does not make the existing code less safe. Only your sense of aesthetics would force you to update the rest of it.
Re:Why the C++ standard ships every three years
by saagarjha on Saturday July 13, 2019 @08:07PM
(#20430883)
> E.g. using a lambda in a function originally written in C++98 does not make the existing code less safe.
You may not be able to if the lambda captures state and you need to convert it to a function pointer.
But it is also true that forcing all the code in a project to use a single dialect is expensive. Developers need to decide what that dialect is --- not just once, but constantly as C++ evolves. ("Is it time to use Ranges yet? Concepts?" etc.) You need to do expensive refactors every time you update the dialect. You need to enforce the dialect at code review time (harder as it changes). Every time you import third-party code into the project you need to update its dialect.
A constantly evolving language that regularly deprecates commonly-used features in favour of "better" alternatives, like C++ does, is problematic. The faster pace of C++ evolution is making this problem worse.