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

> So, as others said, panic is very similar to throw, it's just intentionally ugly and strongly discouraged.

I thought it was officially only discouraged across module boundaries -- e.g., library code shouldn't let panics "escape".



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: