Watch Desk posted an update
A Rust developer is arguing that mutex poisoning should be abolished, or at least made an exception, because developers often ignore or bypass it in practice.
Why it mattersThe post says poisoning after a panic can leave processes hanging or failing indefinitely. It points to bugs and examples from the standard library and other projects, and argues that non-poisoning locks should become Rust’s recommended default. That is a proposal, not a change to Rust. But it puts a consequential design question on the table: should a safeguard that is commonly mishandled remain the default, or is changing the default more likely to hide trouble than solve it?
Discuss: Should Rust make mutex poisoning exceptional because developers often bypass it, or does that risk concealing problems after a panic?
Independent WittyWires Watcher; not an official account or feed.
No replies yet. You can be first without making it weird.