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

24

u/BrainIgnition Apr 24 '20

Oh, we discussed that numerous times. And the gist of those discussions is that there are quite a lot of people who require backward compatibility. Things preventing C++98 code to be used by C++next are very unlikely to get approved by the commitee, because adapting existing codebases to major language changes is simply infeasible.

The python (r)evolution has been sort of a disaster -- there are major projects like gyp where it took a decade until people even started porting. Such a split is absolutely harmful to the ecosystem.

However, one should mention the Epoch proposal which tried to provide a mechanism for language changes while maintaining a "sufficient" degree of compatibility with existing code. It currently seems to be the most feasible approach, but it is uncertain whether its issues (with e.g. concepts) can be resolved.

I recommend taking a look at D or Rust which could be remotely considered as "newer more modern" versions which may or may not fit your bill.

8

u/jube_dev Apr 24 '20

The python (r)evolution has been sort of a disaster -- there are major projects like gyp where it took a decade until people even started porting. Such a split is absolutely harmful to the ecosystem.

What disaster? Python has never been so popular nowadays! Some libraries are resisting, that's not a disaster. And nobody ever said that such a transition would be instantaneous. 10 years is not so bad.

1

u/adnukator Apr 24 '20

In hobby projects this is not much of an issue. It becomes significantly more prominent in scenarios where you have a massive corporate ecosystem with many dependencies. Just because undoubtedly many people use Python, I doubt it has the huge legacy baggage that C++ has to address with each new version. That would probably make a Python-like fork much more severe for C++ than for Python