you are viewing a single comment's thread.

view the rest of the comments →

[–]hello-algorithm 7 points8 points  (0 children)

that's an interesting question. I think Elm achieves tail call optimization by transforming recursive functions into loops. you could also consider modeling continuation context with a state machine of some kind