3 ms·
Conceptually, a tail recursive function represents the body of a loop and we wouldn’t expect a stack trace from a loop either, so this is less of an issue. Am I
by nequo 2y ago
Conceptually, a tail recursive function represents the body of a loop and we wouldn’t expect a stack trace from a loop either, so this is less of an issue. Am I seeing this incorrectly?
- htofuawfs 2y agoThis is correct, however JS/Python pundits expect a stack metaphor when debugging even with an iterative process which can execute in constant space. This leaves us with trampolines as Guido prescribes [1]. [1]: https://neopythonic.blogspot.com/2009/04/final-words-on-tail-calls.html https://neopythonic.blogspot.com/2009/04/final-words-on-tail...
- deleted 2y ago[deleted]