Is Zig just a trend, or will it become a solidly established language? After all, learning something is an investment of time. With Zig, it doesn't seem to have the same kind of industry pressure as Rust. There's talk in open source circles about AI-related issues, and on Hacker News people say good things about Zig. The allocator concept looks great. But there's also a possibility that it won't become mainstream, li…
It's unsafe and intentionally crashes on windows newlines and tabs. If C adopts defer, I don't think there will be enough of a differentiation to overcome the cynical user hostility. Just because people don't like this doesn't mean it's not true.
C will almost certainly adopt defer in the next revision standard. C++ (via RAII + scoped classes) already effectively has defer.
But the fact that it's unsafe means it's effectively unadoptable, no reason not to use C inplace of it.