News for hackers. Stuff that matters.
Re:Crabtime: Zig's Comptime in Rust by kibwen on Saturday March 22, 2025 @04:20PM (#43448335)
> Zig's `comptime` must be evaluated at compile time.

Yes, and the equivalent in Rust is any constant context, such as a const item, or a const block inside of a non-const function. Anything in a constant context is guaranteed to run at compile-time.

There are no comments on this comment yet.