r/programming • u/uinerimak • Apr 19 '21
All C++20 core language features with examples
https://oleksandrkvl.github.io/2021/04/02/cpp-20-overview.html
85
Upvotes
r/programming • u/uinerimak • Apr 19 '21
16
u/[deleted] Apr 19 '21
I think I'm getting old. I remember knowing everything about C++ up to C++14. I missed the last two iterations because I worked in a different language and feel like a novice again.
45
u/[deleted] Apr 19 '21
My sympathies to anyone who has to perform code reviews on "modern" C++.
20
u/[deleted] Apr 19 '21
I like C++ but holy shit we are at another level of line noise
24
u/Krimzon_89 Apr 19 '21
Saving the post to open it never. Thanks.
15
u/wiseguy13579 Apr 19 '21
My sympathies to anyone who has to write a compiler for C++.
20
u/[deleted] Apr 19 '21
C++ is like 3 languages in one at this point. I find modern C++ almost unrecognisable. Not even sure if it's worth learning
10
u/everythingiscausal Apr 19 '21
As a C# dev who has only played around with C++ in the Arduino IDE... that syntax looks awful. I canβt imagine there is any reason for the language to be that complicated, and Iβm glad I donβt have to write C++.
13
u/atatatko Apr 19 '21
It's my personal and probably unpopular opinion, but I believe C++ reached its height with C++17, and what we see now is decline. I have to agree with Scott Meyers that C++ becomes more complicated and vague not because of backward compatibility, but because it developed a culture of complexity. I'm not sure C++20 worth time investment, I personally lean towards Rust.
2
u/MadDoctor5813 Apr 20 '21
This page has stalled my phone every time I try to open it.
2
u/confused_teabagger Apr 19 '21
Lord! This is like a point-by-point breakdown of feature creep!
From what I am seeing, nearly all of these features could have just been optional libraries to those who required those features.
2
u/Drinking_King Apr 19 '21
"An Encyclopedia of updates for you!"
This is why I want C++ to die...and for Dlang to replace it, but I know, I know, that's not gonna happen. But I'm still gonna keep wanting it.
0
u/Narase33 Apr 19 '21
Everybody hating on C++ hasnt coded in another language for a while it seems
-6
u/Dew_Cookie_3000 Apr 19 '21
Rob Pike for president 2024.
0
u/[deleted] Apr 19 '21
[deleted] β view deleted comment
0
u/[deleted] Apr 19 '21
[deleted] β view deleted comment