3 ms·
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 h
by senko 10mo ago
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.
- smj-edison 10mo agoIt's also really ergonomic with `errdefer` and `try`.