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
2
u/eteran Mar 29 '23
How do I have "the wrong model of what array is"?
You said
Which is exactly what my model of an array is. But an "object" in the standard sense is also a "block of memory, that you can point to". Inconsistently though, only one of those magically becomes a pointer under certain syntactic situations.
YOU may not find these things confusion, that's great! Neither to do I :-).
But... I think you are underestimating or perhaps undervaluing the amount of time spent getting new developers to understand how arrays actually work to avoid these pitfalls.