Skip to content
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

Julia scoping issue? #42749

Closed
Leon6j opened this issue Oct 21, 2021 · 3 comments
Closed

Julia scoping issue? #42749

Leon6j opened this issue Oct 21, 2021 · 3 comments

Comments

@Leon6j
Copy link

Leon6j commented Oct 21, 2021

It seems that every time I try to initialize a variable before a loop, Julia would complain that some global variables are sharing the same name and we have to define it locally.

Is the fix just to wrap it around with a let and end wrapper?

Can Julia fix this issue in 2.0?

Many thanks for your consideration.

@simeonschaub
Copy link
Member

This has already been discussed at length in #33864, so it's very unlikely to change at this point.

@KristofferC
Copy link
Member

Based on this and #42734 I would kindly request you to read through https://discourse.julialang.org/t/psa-julia-is-not-at-that-stage-of-development-anymore/44872 and maybe try post on https://discourse.julialang.org first before opening an issue here unless you find something that is a straight-up bug.

If everyone posts their "reactions" when they try out Julia, the issue tracker gets kind of overwhelmed.

@Leon6j
Copy link
Author

Leon6j commented Oct 21, 2021

Sorry!
Will definitely do as you suggested into the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants