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

Hm, not sure how you'd do this. OOM error auto bubbling up sounds dangerous because the inner code might not leave things in a consistent state if it exits unexpectedly, so that makes sense to manually handle, but it's tedious. Rust at least has nice ? and ! syntax for errors, unlike Go where the error-prone error handling actually ruins the entire language.


If only there were some sort of automated idiom for cleaning up state under failure modes




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

Search: