The most disqualifying thing about Zig is the semantics around aggregate assignment.
https://github.com/ziglang/zig/issues/3696
For performance, sometimes Zig doesn't copy structs on the stack, so refactoring to introduce temporaries can cause Zig to just miscompile code. It happens a lot and still isn't fixed.
https://github.com/ziglang/zig/issues/3696
For performance, sometimes Zig doesn't copy structs on the stack, so refactoring to introduce temporaries can cause Zig to just miscompile code. It happens a lot and still isn't fixed.
Comments
The struct parameter passing thing is a complete blocker for shipping things in Zig. The compiler is just broken. And I assume they aren't fixing it because they don't want to regress performance.