The other day I asked myself how I would build trampoline in Swift. I tried to implement a simple recursive function that summed up all numbers in a list.

I was unable to provoke a stack overflow error. The answer came from the errors namesake page. Swift indeed seems to implement tail call optimization, although I could not find anything word on that from Apple.