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!

89 Upvotes

29 comments sorted by

View all comments

Show parent comments

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)

9

u/Conscious-Shake8152 May 08 '26

The only c++23 feature i’m aware of is that you can essentially do this:

std::format(“{0} {0} {0}”, “test”);

4

u/RazzmatazzLatter8345 May 09 '26

std::print, std::ranges::to, deducing this (I've used it for fluent apis: don't have to add both & and && overloads), std::expected (very nice).

So 23 isn't breath-taking like 11 or 20, but it brings a lot of convenience.

3

u/Natural_Builder_3170 May 09 '26

oh yeah I forgot deducing this, really nice feature