News for hackers. Stuff that matters.
Re:Some notes on Rust, mutable aliasing and formal verification by vlovich123 on Thursday May 16, 2024 @03:43PM (#40382336)
Ah - the author does call out that Rust can’t do local reasoning perfectly. The other place it comes up aside from the Sync example I describe is RefCell which similarly lets you mutate from behind a shared reference thus also violating local reasoning. The author also describes why Rust deviated here (the niche Rust was moving into with systems programming often needs an escape hatch for some small amount of non-local mutability)

There are no comments on this comment yet.