Get the latest tech news

Recursion is lying to you


Tail-recursive code in JavaScript still risks stack overflow in real-world runtimes. Learn when recursion is safe and when to switch to iterative patterns.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of recursion

recursion

Related news:

News photo

How Other Link Checkers Do Recursion

News photo

Removing recursion via explicit callstack simulation

News photo

Transforming recursion into iteration for LLVM loop optimizations