4 ms·
i see zig as a potentially good alternative, however as of now the learning curve might be steeper than rust - not because of the language itself, but because o
by nice_byte 5y ago
i see zig as a potentially good alternative, however as of now the learning curve might be steeper than rust - not because of the language itself, but because of the poor state of the documentation. you might need to e.g. read the code of the std lib to figure out how to do certain things.
it needs more time to bake, but i'm looking forward to it.
- throwawaydsstr 5y agoWhat'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