r/ProgrammerHumor • • Jun 16 '21

Maximum call stack size exceeded

Post image
20.2k Upvotes

225 comments sorted by

View all comments

Show parent comments

7

u/i-FF0000dit Jun 16 '21

The stack limit would cause a crash, but this recursion actually ends. I guess the answer to her question is yes.

1

u/Synthrea Jun 16 '21

But we never know if the image generation crashed if the program updates for every reachable intermediate state, though.

2

u/i-FF0000dit Jun 16 '21

Ok, we’re just gonna have to write the program to find the answer programmatically.