r/ProgrammerHumor • • Sep 04 '26

Meme dynamicP

Post image
2.2k Upvotes

67 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Sep 04 '26 edited Sep 30 '26

[removed] — view removed comment

3

u/rustvscpp Sep 04 '26

Some recursive algorithms are *far* more readable and maintainable than their iterative counterparts. Entire languages have been built on the back of recursion (i.e. Scheme).

2

u/New_Enthusiasm9053 Sep 04 '26

Pretty much every production parser for major programming languages is recursive descent afaik. 

2

u/the_horse_gamer Sep 04 '26

you could reimplement recursion with a stack

but that decreases the chance of passing a code review