Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To me, a true garbage collector means any cyclic references can be cleared. That is not the case in Swift... you can still leak memory.


Which is not true if a data structure happens to have a strong reference, like in a cache or event handler, thus "leaking" in a true garbage collector.


That doesn't defeat the definition of a garbage collector. You wouldn't then say no GC exists... but in the case of no inbound references then that's memory that can definitively be cleared.




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

Search: