Re:Crafting Interpreters with Rust: On Garbage Collection
by slaymaker1907 on Wednesday July 31, 2024 @06:52PM
(#41124381)
You would probably want to use RefCell instead of Cell. It allows you to safely upgrade into a &mut using only a constant reference to RefCell, but it dynamically verifies that it's actually safe using ref counting. The ref counting also isn't too expensive since it isn't atomic.
[ Parent
| on HN ]
There are no comments on this comment yet.