r/cpp • • Nov 16 '25

Wait c++ is kinda based?

Started on c#, hated the garbage collector, wanted more control. Moved to C. Simple, fun, couple of pain points. Eventually decided to try c++ cuz d3d12.

-enum classes : typesafe enums -classes : give nice "object.action()" syntax -easy function chaining -std::cout with the "<<" operator is a nice syntax -Templates are like typesafe macros for generics -constexpr for typed constants and comptime function results. -default struct values -still full control over memory -can just write C in C++

I don't understand why c++ gets so much hate? Is it just because more people use it thus more people use it poorly? Like I can literally just write C if I want but I have all these extra little helpers when I want to use them. It's kinda nice tbh.

194 Upvotes

334 comments sorted by

View all comments

Show parent comment

1

u/Mediocre-Brain9051 Dec 05 '25

Most languages don't ever die once they reach a certain momentum, but they certainly become outdated, in the sense that the trade-offs involved in their choice render them unsuitable for new projects when taking account a more modern competition.

I can't find modern use cases that would make less sense to address in F#, C#, Go or Rust than in C++.

The only advantage is really the amount of people who are familiar with it. But if that's the only advantage, it is an outdated language.

1

u/soylentgraham Dec 05 '25

last time i looked, (which was a while ago) I couldn't get toolchains for rust on all the platforms i work on (win, mac, linux, android, wasm etc) which made it a non starter. Even if the language were better, the ecosystem wasnt there.

i have high hopes for swift though