We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is known bug in LIPS:
(test.failing "std: Petrofsky let" (lambda (t) (t.is (let - ((n (- 1))) n) -1)))
It's because this named let expands into:
(letrec ((- (lambda (n) n))) (- (- 1)))
But this was a lazy implementation to not have to implement named let in JavaScript like other let expressions.
Test created in 2022-05-31 (according to git blame)
The text was updated successfully, but these errors were encountered:
The solution is to create a list of initial arguments outside of let:
(let ((#:args (list (- 1)))) (letrec ((- (lambda (n) n))) (apply - #:args)))
Sorry, something went wrong.
fix Petrifsky let #341
cc38fea
No branches or pull requests
This is known bug in LIPS:
It's because this named let expands into:
But this was a lazy implementation to not have to implement named let in JavaScript like other let expressions.
Test created in 2022-05-31 (according to git blame)
The text was updated successfully, but these errors were encountered: