Hacker News new | ask | show | jobs
by surajrmal 263 days ago
You could implement the same smart pointer library in rust and it would be fine. Rust doesn't magically solve the problems around defined destruction ordering when using ref counted pointers. I try very hard to model my usage of Rc or Arc to be very similar to what this article is trying to showcase for basically the same reasons I imagine they do. I'm actually inspired to write a crate with these semantics to make it harder to mess it up.
1 comments

Sure enough I found it: https://crates.io/crates/refbox