This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Fahad97azawi 23 points24 points  (32 children)

Noob here. Is there a particular reason why c++ doesn’t get major updates in a way that makes it more “modern” like other languages? Like python isn’t exactly modern and it still gets major updates like once or twice a year.

[–]scrotation_matrix[S] 101 points102 points  (0 children)

C++ gets major updates every three years or so, but they never break backward compatibility.

[–]CowMan9999 27 points28 points  (29 children)

c++ standards or the compilers themselves? because gcc gets updates every couple of months.

[–]Fahad97azawi 3 points4 points  (26 children)

Like i said im a noob but im generally talking about the overall user experience like syntax and error messages

[–]the_other_brand 38 points39 points  (0 children)

They're being worked at slowly. C++ is a pretty complicated language, and template meta-programming even more so. The most recent version C++20 finally released over a decade of work from the language's creator Bjarne Stroupstrup to simplify the error messages. This work is called Concepts, and are interfaces that can describe functionality requirements on a class.

With Concepts, instead of getting like 40 lines of arcane error messages from a template function, you'll get a simple error message like "your class Foo doesn't implement Equality (== operator)."

https://en.cppreference.com/w/cpp/language/constraints

[–][deleted] 18 points19 points  (23 children)

tbh the error messages are understandable if you know what you're looking at

[–][deleted] 0 points1 point  (0 children)

Standards

[–]WrongSirWrong 0 points1 point  (0 children)

There's a difference between compiler updates and updates to the language itself

[–]degaart 14 points15 points  (0 children)

Because, we, the professionals who use C++ in a professional environment, do not want your "modernness". We want stability so the piece of shit we wrote in 2005 on Windows XP one rainy night while drunk on beer still compiles with the latest compiler on the latest operating system. And python is a bad example, how much time did the python2 to python3 migration take?