4 ms·
`comptime for (someslice) |capture| {};` is already a valid expression so it would conflict along with `inline while` being the other form. The majority of use
by nyberg 6y ago
`comptime for (someslice) |capture| {};` is already a valid expression so it would conflict along with `inline while` being the other form.
The majority of uses of it in unrolling duck-typing cases will most likely be replaced by [1] which allows the same but with `switch` instead. Thus `inline for` will be left for loop unrolling and possibly in use with `inline switch` where it matters.
[1]: https://github.com/ziglang/zig/issues/7224 https://github.com/ziglang/zig/issues/7224