News for hackers. Stuff that matters.
Re:Why Zig when there is already C++, D, and Rust? by haberman on Friday January 15, 2021 @06:52PM (#25798254)
> 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.

There are no comments on this comment yet.