Re:Crabtime: Zig's Comptime in Rust
by wavemode on Saturday March 22, 2025 @03:07AM
(#43444112)
The answer is that zig doesn't have macros (i.e. syntactic transformations). Comptime functions in zig are just that - functions which run at compile time. They run after typechecking of existing types, but they are capable of creating new types. Types in Zig are just values. But they're values that don't exist at runtime.
[ Parent
| on HN ]
There are no comments on this comment yet.