4 ms·
>Sure. But defer just changes the problem from forgetting to write free to forgetting to write defer. Yes, which is a much better formulation.
by coldtea 6y ago
>Sure. But defer just changes the problem from forgetting to write free to forgetting to write defer.
Yes, which is a much better formulation.
- crznp 6y agoI agree that it is better when it can be used, but I don't think it can always be used (eg: long lived memory, resources with overlapping but distinct lifetimes, legacy code). So it adds a new way to misinterpret the code: is cleanup deferred or not?