Hello Ana! Since no one have commented more on this thread for some time I'll add some addition points to Peter's answer myself.
First of all I think that you might misunderstand what tail recursion is but that's OK. I encourage you to look for some nice explanation on internet. I saw many folks misunderstand this over time and have wrote post on this topic myself <https://turbomack.github.io/posts/2017-04-09-tail-recursion.html>. Anyway I can't tell that my post is good resource. I'm pretty sure you'll be able to find explanation you'll like since there are plenty of them. Recursion thing aside I think Peter was right I'll just put it in my own words. Elm compiles to javascript that is fast. Javascript VMs are pretty complicated machines and even though they push really hard to make execution performant there are certain limits to that. Some things are hard to optimize to make them run fast. Elm simply produces javascript that makes it easy for browser to run rather then for human to read. In addition to fast js virtual DOM implementation is also highly optimized for Elm's own needs so if you're building anything with elm-lang/html benefit from this for free too as well. Marek -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.