On 8/3/21 6:00 PM, Miguel Ojeda wrote:
On Tue, Aug 3, 2021 at 2:04 PM Phil Bouchard via Std-Proposals
<std-proposals@lists.isocpp.org> wrote:
Rust can still have dangling pointers if you return a reference from a function:
No, it cannot.

Correction: Rust 2015: yes; Rust 2018: no.

It doesn't matter because of all the extra syntax you need to add to handle to explicitly manage the memory. Developers need to focus on the algorithms, not memory management.

(Please see the follow up in my next post)


Regards,

--

Phil Bouchard
Founder & CTO
C.: (819) 328-4743

Fornux Logo