|
|
|
|
|
by pdpi
3015 days ago
|
|
> But isn't the whole point of tail recursion not to have those stack frames Sure. But a recursive function can have errors happen in one call that are only detected a few levels down. Given a full call stack, you have a trace of the execution thus far that gives you information about where, exactly, things went wrong. With TCO, you're just left with the original call at the top, and the failed state at the bottom, and no snapshot of what happened in the meanwhile. |
|