Re:What Is Zig's Comptime?
by adrusi on Friday August 09, 2019 @01:22PM
(#20656420)
Unlike in C++, Zig makes it easy to do compile time type introspection to see what the types passed as parameters are capable of, and then emit useful error messages if it doesn't satisfy the necessary contract. It's less streamlined than Rust traits, but you also get HKT for free (in theory) by making parameterized types be functions.
[ Parent
| on HN ]
There are no comments on this comment yet.