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
Broken nested funcs with curly args adds outer func to workspace #25205
Comments
I'm inclined to say this is won't-fix; in general if part of a top-level expression fails we don't try to undo the effects of other parts of the expression. |
One approach to fixing this specific issue would be checking that all references to external values are bound. Of course, any other error while evaluating would still have this problem, but it's a bit better. Seems like a pretty low priority though. |
I'm also not clear on why this particular case is a problem. It should be pretty harmless for |
Not anymore, no. But even if you did, getting a warning is the least of your problems if your code has an undefined var error. |
Simplest Example:
gives you:
however, foo is still defined:
The text was updated successfully, but these errors were encountered: