How Safe Is Zig?
scattered-thoughts.net
scattered-thoughts.net
I would say Zig is much safer than the article leads on. That would be because of the impact of the design of the language itself. Zig has many language level improvements that reduce code fragility (a major source of bugs), lessen runtime code complexity, improve ergonomics and reinforce good design. Zig is definitely on the other side of the spectrum than C in that regard.
Zig has for example has a modern type system (incl. nullable types), namespaces, block expressions, structured error-handling, generics through compile time execution, and a defer statement.
C instead has things like the preprocessor, .h and .h combo's, a fragile build system and in general high quality duct tape engineering.