Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Since you understand the argument against TCO in Rust, would you mind explaining it to those who don't?


The 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: