4 ms·
What about tail calls for mutually recursive functions? My understanding is that Scala is not able to do tail call elimination in this situation. So the only s
by bunderbunder 13y ago
What about tail calls for mutually recursive functions? My understanding is that Scala is not able to do tail call elimination in this situation. So the only situation where you can be sure that deep recursion won't overflow the stack is when a function is tail calling itself.
If Frege isn't able to do any better with mutual recursion then that might be a severe limitation on its utility. Scala users can work around the issue by writing loops manually. In a pure language, not so much.