r/cpp • • Apr 24 '20

C++ Fork?

Let me start by simply saying that I am fairly new to C++ and this is the first time I am posting to this sub-Reddit. I hope I am not breaking any rules here.

I have a question:

Would it be possible for C++ to be forked into a newer more modern version like the way Python went from version 2.x to 3.x? Maybe clean-up the language a bit, remove some redundant features etc.

0 Upvotes

51 comments sorted by

View all comments

16

u/adnukator Apr 24 '20

Python 2.x to 3.x is often cited as a fiasco and is used as a cautionary tale how exactly not to do transitions such as this one - more than a decade after 3.x was released there still is a lot of code that has not switched from 2.x, effectively creating two simultaneous dialects of the same language. Therefore everyone is wary about huge jumps such as the one you mentioned. Epochs are a more granular attempt at achieving something similar (https://vittorioromeo.info/index/blog/fixing_cpp_with_epochs.html), but it's not fully fleshed out yet.

2

u/mrexodia cmkr.build Apr 24 '20

Additionally I experienced pretty bad incompatibilities between Python 3.x and 3.y with “deprecated” API errors at runtime, with zero actionable information. I had to dig up the python source code and discussion systems to figure out how to port stuff.

This means that there is no “Python 3” either and you have to pray that the library you use doesn’t have an infrequently triggered code path that uses a deprecated API.