|
|
|
|
|
by BradSwain
466 days ago
|
|
> On modern "hosted" OSes, there are safeguards about stack overflows, which will quickly kill your process. There are lots of contexts where a processing being killed is bad. Sending a deeply nested JSON object as part of a request to some API should not crash the server that handles the request. In contexts where availability matters, recursing on user supplied input is dangerous. |
|
If recursion traverses an exponentially sized abstract space, it can chew up a lot of processing time before going anywhere near the protective limit.