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
Variables Declared In ()
Or []
context produce unhelpful error message
#12808
Comments
To clarify (
let x = 10;
$x
)
# returns: 10 Worth diving in if we can infer that the
No closures involved. That term is reserved for anonymous functions that are permitted to capture values from the outside scope as their own (close over them). In Nushell their syntax is |
I think the takeaway for this issue is that we should make the parsing rules of
|
()
Or []
context produce unhelpful error message
Describe the bug
As title says,
mut
variables declared in()
or[]
closures are not accessible even right in the same closure.How to reproduce
Expected behavior
Mutable variable should be accessible just as they are in non-()[] environments:
Screenshots
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: