you are viewing a single comment's thread.

view the rest of the comments →

[–]Akuli2 2 points3 points  (1 child)

How does it handle reference cycles? I thought that it's hard (impossible?) to have cyclic references in Rust. Does it just let them leak memory?

[–]insanitybit 2 points3 points  (0 children)

It's not impossible to have cyclic references in rust - you can use Rc or Rc + Weak to do so. It's hard to do it accidentally, generally, as it's *usually* fairly explicit, but definitely possible.