3 ms·
Because what zig does is much more intuitive: it has a comptime keyword that allows you to execute almost any function at compile time. So you use the same lang
by iFreilicht 6y ago
Because what zig does is much more intuitive: it has a comptime keyword that allows you to execute almost any function at compile time.
So you use the same language for programming and metaprogramming, there’s no weird second syntax to learn.
Even better, they also use that approach for generics, where types are just comptime parameters. Again, makes the syntax more consistent and requires less different ways of thinking.