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.

3

u/RogerLeigh Scientific Imaging and Embedded Medical Diagnostics Apr 25 '20

I think people look at Python 2 with rose-tinted glasses. While the Python 3 transition was indeed a cause of problems, let's not forget that every single Python 2 release i.e. 2.5, 2.6, 2.7 introduced breaking changes which were sometimes quite painful to deal with. The only reason we've collectively forgotten about it is because we've had a decade stuck on 2.7 where there has been relative stability.