4 ms·
>In Rust, it's easy to ensure you return that memory when you're done with it. This is a false explanation though - the problem is that memory is returned befo
by charleslmunger 2y ago
>In Rust, it's easy to ensure you return that memory when you're done with it.
This is a false explanation though - the problem is that memory is returned before you're done with it.
https://doc.rust-lang.org/book/ch15-06-reference-cycles.html https://doc.rust-lang.org/book/ch15-06-reference-cycles.html
This is extra-wrong as python has a garbage collector to break reference cycles. If giving a simplified explanation to a layman, it's important that if they repeat the explanation to another expert they don't hear "well that's wrong".