ES6 Tail Recursion Optimisation Stack Overflow

后端 未结 2 1981
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 04:35

Having read Dr Rauschmayer\'s description of recursive tail call optimisation in es6, I\'ve since been trying to recreate the \'zero-stack\' execution of the recursive facto

2条回答
  •  感动是毒
    2020-11-30 05:05

    The V8 (Chrome's JS engine) team is not implementing TCO, for the time being. It's ripped out of the most recent versions (see this thread).

    Of the major browsers, only Safari has actually implemented the feature.

    In Node.JS version 8 and later, TCO is not available.

    There may be some hope of TCO being implemented: in a 2017 WebAssembly meeting, Google and all the other groups present were neutral or positive toward exploring TCO implementation further.

提交回复
热议问题