Tail Recursion, Objective-C, and ARC

Jonathon Mah: The problem is revealed: there is work to be done after the recursive call: automatic reference counting inserted a release call for the value returned from node.next. If we were writing this with manual retain/release, one wouldn’t insert any memory management calls into this at all, because -next returns an autoreleased object. However … Continue reading Tail Recursion, Objective-C, and ARC