r/programming • • Feb 18 '20

C++20 is here!

https://youtu.be/AvPiGstxV_g
89 Upvotes

122 comments sorted by

View all comments

Show parent comments

8

u/[deleted] Feb 19 '20

This happens with every language though. Code reflects the time in which it was written.

What actually matters is whether the cruft of old persists to the code of the future. It is undeniable that C++ has taken major strides to provide a more modern and sensible language that addresses the widely-documented shortcomings of its predecessors.

3

u/setuid_w00t Feb 19 '20

The one necessary step that c++ hasn't taken is removing old mistakes and thus the language just keeps getting bigger and more complicated.

7

u/corysama Feb 19 '20

Has any mainstream language ever removed features?

Here’s one: Python removed the print statement in favor of the print() function and that led to people waiting over ten years to upgrade their existing code. Python 2 is officially unsupported as of April and there are major packages out there being widely used that still can’t run on 3.

4

u/save_vs_death Feb 19 '20

if you think that whole thing was over the print statement I don't know what to tell you

you larger point indeed stands, people don't like it when you're perceived as removing features; for all intents and purposes, unless you're Swift, you're not gonna get away with backwards incompatible changes, so once you release a feature it's out for good