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

Have you looked into what ARC really is and does? If not I suggest you do.

With ARC it replaces the manual retain/release management that used to be required and the compiler manages that for you. To write it most[1] of the time is just like if you were using GC[2][3]. The additional thought compared to garbage collection is pretty small and the benefits just in terms of the determinism are quite valuable while debugging not to mention the improved performance.

[1] Except when interfacing with non-ARC code.

[2] Some garbage collection algorithms can cope with reference cycles which ARC can't so you need to make sure the loop is broken by using a weak reference.

[3] As with Java you still need to consider object lifetimes to some extent particularly when requesting notfications or setting callbacks.



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

Search: