Stdle #174 · comptime · 2026-11-27
What does this Zig snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
const std = @import("std");const MyStruct = struct { x: i32 = 0, pub fn hello() void {}};pub fn main() void { std.debug.print("{}\n", .{@hasDecl(MyStruct, "goodbye")});}Comptime