4 ms·
> Essentially, Zig being the "Go" of C/C++/Rust/D. I'm not sure that's a fair comparison, as Zig features compile-time evaluation ("comptime") that supports fi
by haberman 6y ago
> Essentially, Zig being the "Go" of C/C++/Rust/D.
I'm not sure that's a fair comparison, as Zig features compile-time evaluation ("comptime") that supports first-class types. Generics falls out of that by letting you create types imperatively at compile time. It's hard to imagine Go ever going in this direction.
As a long-time C programmer, I am really excited to try out Zig once it stabilizes a bit more. Zig's take on generics seems like a compelling alternative to C++ templates.