Hacker News new | ask | show | jobs
by Animats 255 days ago

    Option<Rc<RefCell<Node<T>>>>
works, but you have to manage your own teardown of the list. If you use Weak, releasing the strong reference to the head of the list tears down the whole list.
1 comments

You want to handle teardown yourself anyway, as otherwise long lists could overflow the stack on drop.

I'm not convinced not using `Weak` is better, though.