Re:Crabtime: Zig's Comptime in Rust
by johnisgood on Saturday March 22, 2025 @06:39AM
(#43444819)
Okay, so this crate adds Zig's actual comptime?
[ Parent
| on HN ]
No, it doesn't because it is based on Rust macros which are strictly less capable than Zig comptime in a crucial way (compile time reflection).
Neither Rust macros nor const fn are 100% what Zig comptime is but they have other properties that Zig comptime lacks. Apples and oranges.
Re:Crabtime: Zig's Comptime in Rust
by johnisgood on Sunday March 23, 2025 @05:02AM
(#43451681)
Then the title is misleading (although not surprising).
So what are the major differences between the two anyways? Just to be sure.