Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, and in Rust you can catch the panic from `unwrap()` with panic::catch_unwind. You just don't, for the same reason you don't catch SystemExits. If a SystemExit is being thrown, it's because you want to crash; if you don't wan to crash, don't throw a SystemExit.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: