News for hackers. Stuff that matters.
Re:Ask HN: Alternatives to Rust Programming Language by throwawaydsstr on Monday November 22, 2021 @01:54PM (#29310211)
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

Re:Ask HN: Alternatives to Rust Programming Language by nice_byte on Monday November 22, 2021 @02:00PM (#29310289)
zig 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