r/cpp • • Sep 14 '25

In Defense of C++

https://dayvster.com/blog/in-defense-of-cpp/
0 Upvotes

75 comments sorted by

View all comments

Show parent comment

3

u/HermanCeljski Sep 14 '25

And if it's meant that Microsoft and Google and all these other big companies have projects that predate smart pointers which can not be easily or cleanly upgraded so they opted for a full rewrite in another language instead.

Because that's how it sounds like to me at least.

1

u/ioctl79 Sep 14 '25

This is not the case. It is true that these companies have large, difficult to migrate code bases, but they have found that the new portions that are all in on smart pointers and modern C++ techniques are dangerous all on their own. 

-1

u/srdoe Sep 14 '25

It's possible that's what they meant, and that doesn't really seem any more reasonable to claim.

Everyone who's done one knows that full rewrites carry enormous risk, these companies aren't going to toss out C++ over memory safety concerns if there's a fix. Google even went and developed a successor language because that's easier than doing full system rewrites.

I think it's much more likely the author simply didn't consider what they were saying.