Stdle #71 · comptime · 2026-08-16
What does this Zig snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
const std = @import("std");pub fn main() void { const fields = std.meta.fields(struct { x: i32, y: i32, z: i32 }); std.debug.print("{d}\n", .{fields.len});}Comptime