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
Brendan Zabarauskas@brendanzabReplying to @mgattozziwait till you find `std::panic::catch_unwind`12:22 AM · Feb 22, 2022·Twitter Web App1 Like
Michael Gattozzi@mgattozzi·Feb 22Replying to @brendanzabI've also used that, but not for this! The problem with catch_unwind is it will not work for abort13