4 ms·
Since you understand the argument against TCO in Rust, would you mind explaining it to those who don't?
by say_it_as_it_is 6y ago
Since you understand the argument against TCO in Rust, would you mind explaining it to those who don't?
- astrange 6y agoThe function that performs the tail-call won't show up in stack traces. This is intentional (and needed) when it's done to eliminate an infinite number of recursive calls, but if it's just a utility function then it can be confusing. As an ObjC example, there's an objc_msgSend call between every two methods in a stack trace, but you never see it. In practice this has never been a problem for me.