-
Notifications
You must be signed in to change notification settings - Fork 178
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
fix: Infinite loop when evaluating (())
(#1427)
#1456
base: master
Are you sure you want to change the base?
fix: Infinite loop when evaluating (())
(#1427)
#1456
Conversation
Evaluation of `(())` is treated as a malformed expression rather than causing an infinite loop
Thanks, this is super useful! 🎉 Can we add a test for this? I suggest we put one in |
No problem I am just happy to help. Should be good to go. Let me know if I missed anything |
Super! Maybe we should introduce a special error type to improve the error message—or maybe that would be overkill. What does everyone else think? |
Not exactly sure what a better fitting existing error message would look like. Could try something like the error message of used for applying non functions.
That's just an idea for reusing an existing error. Don't have any clever unique ideas personally. |
Of the two, I personally prefer the non-function error message. But I’d wait for feedback from the others :) |
Very nice! I also prefer the non-function error. |
@hellerve is there anyone else we are waiting to hear from? |
No, I think we’re good to merge. @eriksvedang is the only one with those rights, though :) |
The test suite fails on this branch – does it help if you merge in latest |
Evaluation of
(())
is treated as a malformed expression rather than causing an infinite loop.