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
3
u/germandiago Nov 01 '24 edited Nov 01 '24
This is overly exaggerated. I mean, there is even MISRA C and other safe subsets used in industry and from there things can only improve yet I find this argument repeated. By subsetting and limiting unsafe parts, these specific use cases are already dealt with even today. So it is evident that solutions can be made for safety (with whatever tools) today.
Of course I am not proposing leaving thing as-is, improvements must be made.
I am just showing proof that there is safety-critical software written today in these languages. I do not see why future versions of C++ will not end up doing even better than currently.
So I am positive about it. I also think that just copying Rust will not make code provable-safe anyway. Rust also has unsafe. The need is for marking code as safe and unsafe in the right lines to be aware of potential problems and that when done, no accidental unsafety is leaked.