News for hackers. Stuff that matters.
Re:I think Zig is hard but worth it by EscapeFromNY on Thursday June 01, 2023 @12:04PM (#36153140)
For loop syntax was changed since 0.10.1.

Zig 0.10.1:

    for(items) |value| {}
    for(items) |value, index| {}
Zig 0.11-dev:

    for(items) |value| {}
    for(items, 0..) |value, index| {}
    for(as, bs, cs, ds, 0..) |a, b, c, d, index| {}

There are no comments on this comment yet.