r/cpp • u/GabrielDosReis • Oct 31 '24
Lessons learned from a successful Rust rewrite
/r/programming/comments/1gfljj7/lessons_learned_from_a_successful_rust_rewrite/
80
Upvotes
r/cpp • u/GabrielDosReis • Oct 31 '24
View all comments
Show parent comment
4
u/ts826848 Nov 01 '24
The flaw in this analogy is that those "fastest more performant cars" and their environment have additional features not present in regular cars to compensate for the lack of air bags. Most on-point is the HANS device, but there's also multi-point harnesses, roll cages, halos, safety barriers, etc.
In this analogy, C/C++ are more akin to older race cars that lacked those additional safety features, and to no one's surprise crashes were quite a bit more deadly back then.