If your Zig code has a for loop in a deinit method, you're using computers wrong.
If your C++ destructor is doing O(N) work thanks to RAII, you are using C++ correctly, but you are still using computers wrong.
Discussion
If your Zig code has a for loop in a deinit method, you're using computers wrong.
If your C++ destructor is doing O(N) work thanks to RAII, you are using C++ correctly, but you are still using computers wrong.
@andrewrk What do you recommend instead?