Michael Gattozzi@mgattozzi·Feb 21"I wish we had try/catch in Rust" "We have try/catch at home" try/catch at home: if let Err(e) = || -> Result<(), Error> { code()?; Ok(()) }() { handle_error(e); }2438425
Michael Gattozzi@mgattozzi·Feb 22I've also used that, but not for this! The problem with catch_unwind is it will not work for abort13
Brendan Zabarauskas@brendanzabReplying to @mgattozzi`catch_abort` sounds… terrifying 🥲12:29 AM · Feb 22, 2022·Twitter Web App3 Likes
Michael Gattozzi@mgattozzi·Feb 22Replying to @brendanzabI don't want to even know what that would look like1