News for hackers. Stuff that matters.
Re:Crabtime: Zig's Comptime in Rust by Wumpnot on Sunday March 23, 2025 @08:53AM (#43452567)
There is no reflection in this example, this is easily replicated in C++
Re:Crabtime: Zig's Comptime in Rust by throwawaymaths on Sunday March 23, 2025 @09:05AM (#43452631)
it's not, because what you want to be a constexpr is not const. The type signature is comptime []u8, not comptime []const u8