4 ms·
> I would quite enjoy a future of writing clean, procedural programs with an improved C standard That would look a lot like the Zig language, it's delightful t
by erichocean 3y ago
> I would quite enjoy a future of writing clean, procedural programs with an improved C standard
That would look a lot like the Zig language, it's delightful to use.
What Rust is to C++, Zig is to C.
- einpoklum 3y ago> What Rust is to C++, Zig is to C. No, they don't relate at all in the same way. (And that's not to mention the lack of consensus about what Rust is to C++...) That being said - Zig is quite the interesting language.
- Karrot_Kream 3y agoAt a 5000 ft level, I think it makes sense. C++ strives for zero-cost abstractions and lots of complexity with a side effect of making development more tractable for large teams with varying levels of familiarity with the codebase. Rust does the same thing, but uses different tools and levels. C has much lower language complexity but also requires longer onboarding times for engineers new to a project, at the cost of some sharp footguns that an experienced practitioner can avoid. Zig relative to Rust falls closer to this than a zero-cost abstraction based high-complexity language. Obviously the devil is in the details and Zig and C are very different languages, but I think the analogy stands well.