mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
Ideally this duplicated code could be factored out into a function, but there doesn't seem to be any way in the Zig type system to represent an argument to a function called at comptime that is only needed if it is comptime-known. Instead, we document what is going on in an adjacent comment in case it gets copy-pasted into new methods in the future.