4 ms·
Zig is not able to output c code that could be consumed by an alternative [optimized|verified/proofed] C compiler like Intel along with other questionable decis
by potiuper 7y ago
Zig is not able to output c code that could be consumed by an alternative [optimized|verified/proofed] C compiler like Intel along with other questionable decisions such as "Zig does not support RAII or operator overloading because both make it very difficult to tell where function calls happen just by looking at a function body. Zig tends to avoid syntactic sugar except where it would have a significant effect on the semantics of a program. Zig does not have a C-style for loop, because you can just use the more general-purpose while loop instead with only a little bit of extra code. [1] The compiler is free to inline non-extern functions, change their parameters, and otherwise !!do whatever it wants!!, since they are internal functions." [2]
[1] https://ziglang.org/download/0.1.1/release-notes.html https://ziglang.org/download/0.1.1/release-notes.html [2] https://andrewkelley.me/post/intro-to-zig.html https://andrewkelley.me/post/intro-to-zig.html
- AndyKelley 7y agoJust a note for drive by viewers, there's a link here to 0.1.1 release notes but a lot has changed since 0.1.1: * [0.2.0 release notes](https://ziglang.org/download/0.2.0/release-notes.html https://ziglang.org/download/0.2.0/release-notes.html) * [0.3.0 release notes](https://ziglang.org/download/0.3.0/release-notes.html https://ziglang.org/download/0.3.0/release-notes.html) * [0.4.0 release notes](https://ziglang.org/download/0.4.0/release-notes.html https://ziglang.org/download/0.4.0/release-notes.html) 0.5.0 is scheduled to be released Sept 30.