Hacker News new | ask | show | jobs
by dthul 2486 days ago
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.
1 comments

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.