4 ms·
The hacks you have listed have the advantage to be visible. Reading the code, you know whether they are called or not. The issue with cleanup on scope exit is
by grive 8y ago
The hacks you have listed have the advantage to be visible. Reading the code, you know whether they are called or not.
The issue with cleanup on scope exit is that this introduces ambiguous code-flows. You would need to demonstrate a strong advantage, beyond making life easier for the writer of the code.