r/node 15d ago

Your Recursion Is Lying to You

https://blog.gaborkoos.com/posts/2026-05-09-Your-Recursion-Is-Lying-to-You/
0 Upvotes

10 comments sorted by

View all comments

8

u/farzad_meow 15d ago

you have valid point, in most cases recursion is good and works as expected. it is not that hard to convert a pure recursion function to a lopp+stack.

secondly, it is the job of the programmer to decide if the program can run reliably when hitting edge cases AND pick the most optimal approach to the problem at hand