-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9da7cb
commit f96ef2d
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f96ef2d
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.
I approve on the premise that @JeffBezanson will find this so annoying that he may be willing to consider #8870 to be an actual issue rather than a feature ;-)
f96ef2d
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.
Even in the prototype development (e.g. scientific experiment), sometimes we need high performance, while the global variables are unavoidable. So the best solution is to tell people not to involve a global variable in any loop, as I mentioned in #8870.
f96ef2d
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.
That is not the best solution. Stefan already pointed out what's wrong with your interpretation of the problem with globals. Please reread what he wrote.
f96ef2d
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.
We used to have such a nice banner. Too bad those days will be gone.
f96ef2d
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.
@JeffBezanson , so you have found a good solution?
f96ef2d
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.
I had forgotten about it, but I decided what I'd prefer: #9123 (comment)
f96ef2d
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.
f96ef2d
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.
@Sisyphuss, please be cautious when mentioning the names of Julia macros, and either quote them with backticks as code, or spell out the word "at", so as to avoid sending notifications to GitHub users uninvolved with the Julia project. Thanks!
f96ef2d
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.
@Sisyphuss we have
Base.warn_once
.f96ef2d
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.
Yes, you would get exactly one warning.