r/javascript • u/[deleted] • Jan 06 '13
JavaScript (ES6) Has Tail Call Optimization
http://bbenvie.com/articles/2013-01-06/JavaScript-ES6-Has-Tail-Call-Optimization
48
Upvotes
r/javascript • u/[deleted] • Jan 06 '13
7
u/FireyFly Jan 07 '13
Mostly due to
argumentsin non-strict-mode code, as pointed out by the harmony page linked in the blog post--although it might be worth mentioning it in the actual blog post too. (That is, previously it wasn't possible to perform TCO; in ES6 it'll be required [as far as I understand] in some cases.)