▲ | Attrecomet 4 days ago | |||||||
Am I missing anything in the article about this problem in particular? Owning references are a part of modern C++, which should be covered by the author's arguments. | ||||||||
▲ | steveklabnik 4 days ago | parent | next [-] | |||||||
I think your parent may be slightly confused, in the sense of terminology: "owning reference" is a contradiction in Rust terms. Here's the document I believe your parent is referring to: https://docs.google.com/document/d/e/2PACX-1vSt2VB1zQAJ6JDMa... The claim in the article: > Yes, C++ can be made safer; in fact, it can even be made memory safe. The claim from this document: > We attempted to represent ownership and borrowing through the C++ type system, however the language does not lend itself to this. Thus memory safety in C++ would need to be achieved through runtime checks. It doesn't use "owning reference" anywhere. | ||||||||
| ||||||||
▲ | aw1621107 4 days ago | parent | prev [-] | |||||||
> Owning references are a part of modern C++ Maybe we're thinking of different things, but I don't think C++ has owning references, modern or not? There's regular references (&) which are definitely not owning, and owning pointers (unique_ptr and friends), but neither of those quite match Rust's &. | ||||||||
|