3 ms·
Probably the other PR just slipped through... What I find difficult with recursion in practice is that the stack depth is quite limited, also depending from wha
by andi999 6y ago
Probably the other PR just slipped through... What I find difficult with recursion in practice is that the stack depth is quite limited, also depending from what stack depth you are calling the function. Of course memory can also blowup but this is easier to reason (and adding 128gig might just solve it)
- mrkeen 6y agoStack-depth is an implementation detail. It's chicken-and-egg. Programmers think of recursion as that thing that blows up the stack, so they don't demand that language implementers do a better job with it. Language implementers don't stop recursion from blowing up the stack because no-one is asking them to do so.
- andi999 6y agoYes. So you cannot use it in production.