-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Make documentation clear about handling of local
in global scope
#42664
Comments
See #10472 The answer is that each top-level expression has an invisible scope block around it that Historically, this was useful for hygienic macros, which can freely add new |
We could add something at the end of Global-Scope Docs to describe the behavior of I have tested the code blocks in interactive mode and from script and it is the same. Since the docs already state |
@JeffBezanson Could you assign this issue to me? |
We typically don't assign issues to persons unless there is a strong reason to do so (e.g if the person is the original author of the code that needs fixing). If you want to work on this, you can just open a PR, no need to get assigned. |
Following https://stackoverflow.com/questions/69587809/how-to-think-of-begin-block-in-julia and discussion on Slack it would be ideal to make a clear explanation in the Julia manual how the following code blocks:
and
and
are handled if they are in global scope in two modes:
CC @JeffBezanson
The text was updated successfully, but these errors were encountered: