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

> Everyone says it's not like exceptions, but in fact it is much worse. Panic is stringly typed and you can catch_unwind it

I'm not sure which argument you are trying to make but panics are not stringly typed unless you panic with a string. You can use panic_any(MyPayload) and then it panics with that instead.



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

Search: