You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an exception ArkTailCall that replaces ArkCall for tail calls. Use it whenever we're in tail position, which we'll track with another argument to toAST, which is true when the parent is in tail position. Then if we're in tail position and our parent is and we're calling the current function (another new argument to toAST) then use ArkTailCall instead of ArkCall.
The text was updated successfully, but these errors were encountered:
The situation has changed. For the reference interpreter it may be a good idea to eliminate tail calls, but it's less urgent. The worst we can do is exhaust memory (that stack will be on the heap).
ES2015 has tail calls in strict mode; we should ensure we're using this where possible.
Add an exception
ArkTailCall
that replacesArkCall
for tail calls. Use it whenever we're in tail position, which we'll track with another argument totoAST
, which istrue
when the parent is in tail position. Then if we're in tail position and our parent is and we're calling the current function (another new argument totoAST
) then useArkTailCall
instead ofArkCall
.The text was updated successfully, but these errors were encountered: