MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xz7flz/recursion/19stwyfffc4v7/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 8d ago
41 comments sorted by
View all comments
Show parent comment
12
Bruh, tail call optimization is what allows recursion to be on the same level as a flat loop. You don't "lose" it when you flatten it, you end up not needing it in the first place.
View all comments
Show parent comment
12
u/Wonderful-Habit-139 7d ago
Bruh, tail call optimization is what allows recursion to be on the same level as a flat loop. You don't "lose" it when you flatten it, you end up not needing it in the first place.