News for hackers. Stuff that matters.
Re:The Hare programming language by nyanpasu64 on Monday April 25, 2022 @06:16AM (#31152565)
If I have a &mut T, what pointer type do I convert it into (and create multiple copies of), to allow shared mutation scoped within the lifetime of the source &mut T?
Re:The Hare programming language by zozbot234 on Monday April 25, 2022 @06:35AM (#31152671)
You can have multiple *mut T aliasing to the same data, but if you mutate through them you're on your own wrt. Rust's safety rules.