Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

备注[100] 消栈的尾调用已被证明是一个有争议的特性....... #31

Open
wwmmzz opened this issue Jul 9, 2021 · 1 comment

Comments

@wwmmzz
Copy link

wwmmzz commented Jul 9, 2021

消栈的尾调用 是 指 尾递归么?

@doodlewind
Copy link
Owner

doodlewind commented Jul 9, 2021

尾递归是 tail call,这里指的是 proper tail call (PTC),即引擎对尾递归的消栈优化。不确定为什么 TC39 要这样定义,叫做 tail call optimization 的话应该就不会有歧义了。参见术语表:
https://github.com/doodlewind/jshistory-cn/blob/master/appendices.md#proper-tail-call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants