-
Notifications
You must be signed in to change notification settings - Fork 94
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
Export user variables before their definition #2485
Conversation
There are currently two tests failing - |
@TomekTrzeciak - at first glance, this seems a good idea, thanks. There seems to be a lot of spurious commits on your branch; perhaps you need to rebase it onto master? |
a68e8ed
to
76d053f
Compare
76d053f
to
ea2d75f
Compare
Sorry, I've botched my local branch and then pushed that to github. The spurious commits should be gone now and the tests should be updated as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; tests as working.
(Change is harmless and is an improvement to the intention of the current functionality. My normal comment (e.g. metomi/rose#1221) applies when it comes to the motivation of the use case, however.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Existing tests provide adequate testing for this change.
It would be useful to have user environment variables exported as soon as they are defined, so they could be used in further definitions like so:
instead of:
This pull request moves the export of variables before their definition, which makes them exported as soon as they are defined.