3 ms·
Flipping this, in the C++ world, "garbage collection", is more than just freeing unused references. "Resource release is destruction" Try-with-resources is ok
by DrBazza 5y ago
Flipping this, in the C++ world, "garbage collection", is more than just freeing unused references. "Resource release is destruction"
Try-with-resources is ok, but not great.
Ultimately developers, especially those concerned with performance, prefer full control. And that means deterministic lifetime of memory and resources.