JavaScript, with ES6, will now have tail call elimination and lexical block scope with the let keyword. Looks like JavaScript is getting closer to scheme.
ES5 was supposed to have tail call elimination too, until it didn't. Now it's been pushed off to ES6 and it's looking like it's not going to happen there, either. So we're still stuck using trampolines (I explain trampolines here: https://taylodl.wordpress.com/2013/06/07/functional-javascri...).
If you want your JavaScript to look closer to scheme then use ClojureScript.
2 comments
[ 3.3 ms ] story [ 18.3 ms ] threadIf you want your JavaScript to look closer to scheme then use ClojureScript.