2 ms·
You need to use weak pointers for backpointers in Rust, because there's no GC. If you create a cycle with reference counted objects, objects are never released
by Animats 12y ago
You need to use weak pointers for backpointers in Rust, because there's no GC. If you create a cycle with reference counted objects, objects are never released and the program will leak memory.
- pjmlp 12y agoOf course, but my question was why it wasn't explained, I know very well the reason why weak pointers are required.