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

Prevent recursion #17

Open
sam701 opened this issue Oct 28, 2020 · 1 comment
Open

Prevent recursion #17

sam701 opened this issue Oct 28, 2020 · 1 comment

Comments

@sam701
Copy link
Owner

sam701 commented Oct 28, 2020

We do not want a Turing complete language. We should eliminate recursion. The following code leads to stack overflow:

let ff = (x, acc, f) =>
    if x == 0 then acc else f(x-1, acc+2, f)

in

ff(20000, 0, ff)
@sam701
Copy link
Owner Author

sam701 commented Dec 9, 2020

jsonnet has the same issue (Dec 2020)

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

No branches or pull requests

1 participant