3 ms·
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.
by azinman2 10y ago
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.
- pjmlp 10y agoWhich 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.
- azinman2 10y agoThat 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.