by mannykannot · 3y ago · 0 comments
For a long time, the complaint was that it was being used as nothing more than a "better C", though in my experience, the worst abuses came from among those who were determined to use every feature.
In the beginning, the fact that early C++ was a superset of C is probably what led to its widespread adoption, but the legacy of that decision, particularly with regard to pointers and pointer arithmetic, has been a multiplier of complexity.
Raw pointer arithmetic is not allowed in code marked @safe.
I've proposed it for C and C++:
https://www.digitalmars.com/articles/C-biggest-mistake.html
It would be simple to add it, and would be legacy compatible.