True, but the 99% case for tail-called functions is where the tail-caller, and the tail-callee are the same function. So, sure, we don't have all the power of classical tail calls. But we have lots of other power to compensate for it :-) And we can support the majority use-case at the cost of some compiler complexity.
Marijn Haverbeke wrote: > Ah, I see what you mean now. But this kind of rewriting requires > knowledge of the tail-called function (which may be in another module, > or passed in by value), and a bunch of extra complexity. It doesn't > really have the elegance of classical tail calls. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
