4 ms·
What's the state of safety in zig? does it allow footguns like in C/C++ ? What about borrow checker(it makes program safe. isn't it?)? I would like to know adv
by throwawaydsstr 5y ago
What's the state of safety in zig? does it allow footguns like in C/C++ ? What about borrow checker(it makes program safe. isn't it?)?
I would like to know advantages as well
- nice_byte 5y agozig is not safe. it's more "ergonomic" so theoretically it's harder to write bugs than in c, but out-of-bounds accesses, use-after-frees and such can still happen because of programmer error in well-formed zig programs. see also: https://github.com/ziglang/zig/issues/2301 https://github.com/ziglang/zig/issues/2301