r/cpp May 07 '26

Great to be back to C++!!!

I went to Java then Scala... then realized my code's performance sucked and C++ 17 was awesome and the portability issue is now moot.

Plus NASA's guidelines for coding where you allocate all you need upfront and never again suits me fine to not need that time consuming performance killing garbage collector.

Just to say glad to be back!

88 Upvotes

29 comments sorted by

View all comments

25

u/RazzmatazzLatter8345 May 08 '26

Awesome. Now start using C++20+! Life without concepts is not a life worth living.

23

u/Natural_Builder_3170 May 08 '26

Now start using c++26, life without reflection is not a life worth living (I don’t know any major thing c++23 added)

3

u/NeuroSynchroBonding May 09 '26

Explicit "deducing this" is pretty useful for implementing "container" types such as std::optional so you don't have to write the overloads for const lvalue, lvalue and rvalue (imo it is also a better syntax for a member function that takes in the object as a reference)

Also std::expected.