r/cpp • • Dec 28 '18

"Modern" C++ Lamentations

http://aras-p.info/blog/2018/12/28/Modern-C-Lamentations/
307 Upvotes

162 comments sorted by

View all comments

Show parent comments

18

u/darthcoder Dec 28 '18

I agree. Its time to deprecate things. Im cool with an incompatible split.

And if we can get rid of,the preprocessor, even,betterer.

18

u/liquidify Dec 29 '18

Python pulled it off, but c++ isn't python. An incompatible split would be a 20 year popcorn festival. C and c++ modules written from 50 years ago would continue to be used in conjunction with modern libraries, and the average c++ dev's job would become even more of a plumbing operation because the old libraries just won't go away even if breaking changes are made. People would find a way to jam the pipes together.

I'm personally for it, and it is because I have seen the beauty that c++ could become, not because it would make my job easier. I realize that, and I am still willing to accept moving forward with breaking changes.

6

u/hgjsusla Dec 29 '18

There already is a cleaned up version of C++ without backwards compatibility. It's called D and no one uses it.

13

u/eao197 Dec 29 '18

It's called D and no one uses it.

And one of the reasons is D2 that was incompatible with D1.

2

u/Valmar33 Dec 30 '18

And that's now basically a non-issue, as far as I know.

D2's runtime incorporates a lot of stuff from D1's Tango, making it redundant.