Maybe a future node version will add tail call optimization, and Javascript could have efficient recursion again.
Tail recursive functions are so much clearer to me than a while loop... something about walking down to a trivial solution just makes sense. 🤷♀️
I long the day they will tackle the problem once and for all. It's the last thing missing from ES2015! (Only Safari supports it.)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Maybe a future node version will add tail call optimization, and Javascript could have efficient recursion again.
Tail recursive functions are so much clearer to me than a while loop... something about walking down to a trivial solution just makes sense. 🤷♀️
I long the day they will tackle the problem once and for all. It's the last thing missing from ES2015! (Only Safari supports it.)