Re:Why Zig when there is already C++, D, and Rust?
by flohofwoe on Saturday January 16, 2021 @05:17AM
(#25801347)
Currently: initialization of multi-dimensional arrays, and partial initialization of arrays, this whole area isn't as convenient as C (yet, I hope).
Also, currently it's possible to return a pointer/slice to a stack-allocated array from a function without a warning or error resulting in a dangling pointer. But this too will hopefully be fixed (because even C compilers warn about this these days).
But I think all those points can be considered bugs / todos.
Also, currently it's possible to return a pointer/slice to a stack-allocated array from a function without a warning or error resulting in a dangling pointer. But this too will hopefully be fixed (because even C compilers warn about this these days).
But I think all those points can be considered bugs / todos.