Most of the sins of C++ are due to backwards compatibility with C. C++ is a much-better designed language than it gets credit for.
@tqbf pimpl is backwards compat (header files), delete[] is hard to avoid, overloading is necessary but would be better with concepts.
-
-
@pcwalton Without header files the problem pimpl classes solve would be even worse! -
@tqbf Would you prefer all classes be heap allocated by default? That costs a lot of perf. I'm not sure what your solution is without pimpl. - 3 more replies
New conversation -
-
-
@pcwalton The problem is that C++ encourages deeply, tightly coupled programs _at a language level_.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.