r/ProgrammerHumor • • 8d ago

Meme recursion

Post image
956 Upvotes

41 comments sorted by

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.