Tail recursion in swift

Example on what it is and how to avoid call stack overflows.

Kristiina Rahkema
ITNEXT
Published in
4 min readJul 19, 2021

--

So far as an iOS developer I’ve had little contact with call stacks outside of what I’ve learned at university. Most of the applications I have worked on weren’t very resource intensive. I have worked on complex apps, but the complexity was mostly about providing good user experience.

--

--

Writer for

I’m an iOS developer with an interest in app security. I’m also a PhD student and junior researcher working on static analysis for mobile applications.