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

Unwrap _is_ explicitly handling an error at the point of occurrence. You have explicitly decided to panic, which is sometimes a valid choice. I use it (on startup only) when server configs are missing or invalid or in CLI tools when the options aren't valid. Crashing a pod on startup before it goes Ready is a valid pattern in k8s and generally won't cause an outage because the previous pod will continue working.


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

Search: