Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

> Avoiding dangling references is another part of memory safety, and GC is one way to accomplish that; it's not orthogonal.

It's the removal of the `free` and `delete` semantics that avoid dangling references. Not GC. While GC posits a good alternative to many of these problems. GC doesn't actually help memory safety at all. Unless you consider memory leaks to be a matter of "memory safety".



Avoiding premature free()s is precisely what garbage collection accomplishes in this context, because you will never have to call free() to avoid running out of memory.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: