3 ms·
> My #1 complaint about Rust is that leaking a future is safe. There’s no other way given the leakpocalypse decision. You’d need an entirely new leak-proof lan
by masklinn 3y ago
> My #1 complaint about Rust is that leaking a future is safe.
There’s no other way given the leakpocalypse decision. You’d need an entirely new leak-proof language to fix that, and that means you need alternatives for Rc and Arc (or a way to prevent them creating a cycle).
- hedora 3y agoI'd gladly give up Rc and Arc if it meant the borrow checker treated spawn() like a normal function call. All the code I write is async, so the borrow checker is effectively broken for me. (Wrapping everything in Arc creates weird false sharing at runtime, and I don't want to spend time debugging that class of performance nonsense.)