Steering Zig Fmt

unrelated, but this is possible

    const a = _: { break :_ 0; };
    std.debug.print("{}\n", .{a});

so maybe we could have something like this as shorthand?

    const a = :{ break: 0; };
    std.debug.print("{}\n", .{a});

or even dropping the : before the opening brace, so that it works with labeled loops too.

3 Likes