On Monday, 18 February 2013 at 17:58:56 UTC, Benjamin Thaut wrote:
Yes correct. But if you would do them otherwise you wouldn't need a GC in the first place. The whole point of the GC is that you can be more productive by not caring about this stuff.


That a very limited view of things. GC avoid many bookeping that you would have done with manual memory management, and depending on the code, granted you can tolerate some floating garbage, it can even be faster.

Coupled with immutability, GC allow to get rid of ownership. It allow to avoid many copies and allocation you'd have done with other memory management systems.

GC is surely not the magic tool that solve all problems, but it does way more that what you claim. It does open new doors.

Reply via email to