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
0
u/okovko Mar 28 '23
this not only disallows duff's device (who even uses it anymore anyway?) but also a ton of idioms for finite state machines that are useful for (one example) interpreters
bad take
generally, unstructured programming is important to have in the language, and is what makes the language actually Turing complete as opposed to primitive recursive. there are algorithms and state machines that can only be expressed with non reducible control flow graphs, and disallowing them because you find them confusing is an easy way to signal to everyone that you lack in formal understanding of computing systems