| ▲ | kubb 2 hours ago | |
You can just compile any tail recursive function to a function with a loop and no recursion. | ||
| ▲ | srean 24 minutes ago | parent | next [-] | |
That does not address the use case where I find tail recursion most tempting. That would be mutually recursive functions. If the function can be written as an idiomatic loop I probably would do so in the first place. | ||
| ▲ | 1-more an hour ago | parent | prev | next [-] | |
This is in fact how Elm does it! Tail call recursion compiles to a while loop. | ||
| ▲ | an hour ago | parent | prev | next [-] | |
| [deleted] | ||
| ▲ | adamwk 2 hours ago | parent | prev [-] | |
[dead] | ||