Why garbage collection when RAII is available?
Garbage collection and RAII are useful in different contexts. The presence of GC should not affect your use of RAII. Since RAII is well-known, I give two examples where GC is handy. Garbage collection would be a great help in implementing lock-free data structures. […] it turns out that deterministic memory freeing is quite a … Read more