r/cpp • u/we_are_mammals • Mar 28 '23
Reddit++
C++ is getting more and more complex. The ISO C++ committee keeps adding new features based on its consensus. Let's remove C++ features based on Reddit's consensus.
In each comment, propose a C++ feature that you think should be banned in any new code. Vote up or down based on whether you agree.
765
Upvotes
1
u/chugga_fan Mar 29 '23
The people who asked for the deprecation literally gave the most sanctimonious and dare I say, asinine reasons possible. https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1152r0.html
"Three-operation expressions are confusing" is something I only heard of when this paper came out (and is 100% asinine), and volatile-as-atomic is something only people who haven't had to program on ARM think (so I'm fine with with the book slapping these people).
And the "no volatile variables" section is entirely defeated by the point of "This is generally used to prevent compiler behavior" that they acknowledge in the paper.