2 ms·
It looks very nice and I look forward to using it. A downside for package authors (once Zig gets to the point of having a package ecosystem) will be that synta
by skybrian 5y ago
It looks very nice and I look forward to using it.
A downside for package authors (once Zig gets to the point of having a package ecosystem) will be that syntax errors are checked only with the comptime parameters that are actually used at call sites. To maintain compatibility, authors of public APIs will need tests with commonly-used comptime parameters.
It seems like a good way to avoid lots of type-level complexity in the language, though.