4 ms·
The proposal to be explicit is fine, but there are alternative proposals which avoid this problem too: - Only tail recurse once the stack is n objects deep. Ha
by blagie 4y ago
The proposal to be explicit is fine, but there are alternative proposals which avoid this problem too:
- Only tail recurse once the stack is n objects deep. Having a 10,000 element stack trace isn't helpful.
- Keep a log of which functions were called, but not a full stack trace of each call. That's O(1).
I mentioned both of those in my post.