Date: Tue, 3 Aug 2021 19:11:19 -0400
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_at_[hidden]> 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,
> On Tue, Aug 3, 2021 at 2:04 PM Phil Bouchard via Std-Proposals
> <std-proposals_at_[hidden]> 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 <http://www.fornux.com>
Received on 2021-08-03 18:11:23