-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
update note on package extensions #3451
Conversation
docs/src/creating-packages.md
Outdated
get the functionality from the extension. The other way round does not work, i.e., if you load a package having | ||
an extension from a project environment and then load the package required for the extension from you main/default | ||
environment, the extension will not be loaded. This is different from the behavior of Requires.jl. Thus, package | ||
extensions are not full replacements of the behavior of Requires.jl. |
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 would suggest removing the last sentence since it doesn't really add anything. You have already described the difference. Perhaps the sentence before it can be made more explicit, something like
This is different from the behavior of Requires.jl where the conditional code is evaluated no matter from what environment the "extension dependency" is loaded
maybe?
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.
Good suggestion. I updated the text accordingly.
bump |
(cherry picked from commit 6f02014)
This is based on a discussion with @KristofferC.
Closes JuliaLang/julia#49497