3 ms·
> And in C++ 23 something similar to what is not even thought through in Rust today is also planned. Source? The closest thing in C++ to what Rust offers today
by zozbot234 6y ago
> And in C++ 23 something similar to what is not even thought through in Rust today is also planned.
Source? The closest thing in C++ to what Rust offers today is the C++ Core Guidelines https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines but these are best-effort in nature and do not have a goal of comprehensively ensuring soundness or memory-safety.
And I'm not sure why you're implyng that the Rust featureset "isn't even thought through" when the Rust Belt project has been doing a lot of work on modeling it in a principled and clearly-understandable way, and this has already contributed usefully to the design of newer Rust features.
- Rochus 6y agoE.g. https://github.com/isocpp/CppCoreGuidelines/blob/master/docs/Lifetime.pdf https://github.com/isocpp/CppCoreGuidelines/blob/master/docs...
- steveklabnik 6y agoAs mentioned by your parent, matching Rust’s abilities here is a non-goal for this project. Still very glad to see it!
- Rochus 6y agoThere are a lot of mechanisms in C++ to avoid the issue Rust want's to solve with the borrow checker altogether. And there are proposals going in the same direction as the borrow checker. But in the end, human error can somehow circumvent all these security mechanisms, no matter how much hoopla they are praised today.