3 ms·
it depends. If it copes with circular references, then yes, it is suffiecient to use for gc. If not then it's just what COM had.
by StrawberryFrog 15y ago
it depends. If it copes with circular references, then yes, it is suffiecient to use for gc.
If not then it's just what COM had.
- nupark2 15y agoUnfortunately, it doesn't handle cycles in the object graph[1], which was almost the entire reason I wanted GC. Manually dealing with cycles is one of the worst parts of working with blocks (the other is the lack of parameterized types). Assuming that ARC works reliably and consistently, it'll be nice to lose some boilerplate, but the worst facet of reference counting -- object graph cycles -- still isn't fixed. [1] There is support for zeroing weak references, but this is a very manual solution to the cycle problem.
- chrisjsmith 15y agoThat basically makes it useless. It would be an utter pain in the arse finding leaks in. I don't know why they cant chuck a generational collector in it such as the one in the last ObjC drop in it. Even microsoft with the woefully inadequate WM7 platform has a proper GC.
- nupark2 15y agoI wouldn't say useless -- just a lot less useful. Maybe they'll add cycle handling on top of it later.