Stdle #28 · option · 2026-07-04
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 x: ?i32 = null; if (x) |v| { std.debug.print("{d}\n", .{v}); } else { std.debug.print("none\n", .{}); }}Option