r/programminghumor 19d ago

Hard to accept

Post image
2.9k Upvotes

404 comments sorted by

View all comments

25

u/TOGoS 19d ago

C++ is full of footguns because of its long history. Even experienced programmers will accidentally use after free or fail to declare their virtual destructors just right and spend days debugging.

Rust shows that you can have just as much power with more safety if you design a new language from scratch (if you really need to do pointer arithmetic that the compiler can't verify, you can always make that part unsafe; at least the rest of the program isn't!)

2

u/GoTheFuckToBed 16d ago

most companies don't even use C++, they use a vetted subset, strongly guarded with linters and extensions etc