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

Zig puts OOM handling much more front and center than C. In C, you can handle OOM but it's easy to ignore NULL checks on mallocs &co because they almost never happen.

In Zig you must handle it. Even if handling means "don't care, panic", you have to spell that out.



It's also really ergonomic with `errdefer` and `try`.




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

Search: