Need help replacing BoundedArray

btw std.ArrayListUnmanaged was marked as deprecated in favor of std.ArrayList so it makes sense to update to std.ArrayList straight away.

        var sbai = SlaggyActions.init(0) catch unreachable;
        sbai.clear();  // FIXME: Why is this required to avoid local variable is never mutated?
        sba.appendAssumeCapacity(sbai);

Why you declaring sbai as var in first place shouldn’t it be const? It will prevent local variable is never mutated error.

1 Like