Re:Why is Zig so Cool?
by WalterBright on Sunday November 09, 2025 @10:50PM
(#45872222)
print is a fairly complicated case, as it has to deal with all kinds of different types.
I mean a simple example. Just to illustrate the concept. Like the examples I provided here:
If you scroll a bit up on the page from the print example, you'll see more introductory stuff: https://ziglang.org/documentation/0.15.2/#Introducing-the-Co...
Again, the novel use of partial evaluation in Zig is that it eliminates generics, interfaces, and macros. Therefore, any language that has one or more of these features does not have this novel design.