3 ms·
> Recursion with a tail call and iteration are the same, though. No they aren't. Maybe for self-recursive functions, but you're stretching it. > The differenc
by bad_user 17y ago
> Recursion with a tail call and iteration are the same, though.
No they aren't. Maybe for self-recursive functions, but you're stretching it.
> The difference between tail recursion and iteration is whether or not the target of a jump happens to be the start of a function or not.
That's the difference between a subroutine and a coroutine. Yeah, having coroutines implies you have subroutines as well, but the reverse is not true.