Re:Rust is the future, C is the new Assembly: Josh Triplett ...
by dthul on Thursday August 29, 2019 @02:35AM
(#20827210)
I think you missed the point of Rust. It's not about replacing new/delete with RAII (even though that's a good idea for sure).
How does modern C++ help you with tracking whether a pointer/reference outlives the lifetime of the pointee? Not at all.
[ Parent
| on HN ]
Re:Rust is the future, C is the new Assembly: Josh Triplett ...
by pjmlp on Thursday August 29, 2019 @04:35PM
(#20833402)
By using the lifetime static analysis recently introduced in clang tidy and Visual C++ 2019.
It is still in the early stages and work is being done to make it a common feature across major compiler, while improving their capabilities.