3 ms·
At the moment, the recommended solution for that is to use a block scope. { var iter = foo_dir.iterate(); while (try iter.next()) |entry| {
by messe 4y ago
At the moment, the recommended solution for that is to use a block scope.
{
var iter = foo_dir.iterate();
while (try iter.next()) |entry| {
// Do something
}
}
{
var iter = bar_dir.iterate();
while (try iter.next()) |entry| {
// Do something
}
}