-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add prefix to extension #90
Conversation
Thanks a lot! Can you also prefix the other extensions? |
Unfortunate that it's needed for now. I guess it's temporary? See JuliaLang/Pkg.jl#3380 (comment).
and in Project.toml. |
Well, I assume this is desired even if the name collision issues are fixed, see e.g. JuliaMath/ChangesOfVariables.jl#13 (comment). |
I guess it's already established inofficially, most packages that I'm aware of use these prefixes (e.g., SciML, SpecialFunctions, and LogExpFunctions). |
Oh, there are LOTS of packages that don't do prefixing - just search github as https://github.com/search?q=%5Bweakdeps%5D+lang%3ATOML&type=code. |
Github doesn't show any results, is the link you posted correct? In any case, I'm sure there are packages which don't use prefixes but a major part of the ecosystem, including core packages, already does. And I guess it's rather these packages which form inofficial standards. |
Just clicked again - seems to work. It's search for I'm not against this PR anyway. |
I think it's mostly SciML and related, btw. Eg LoopVectorization, Plots, MPI, PGFPlotsX, PkgCacheInspector, StaticArrayInterface don't use prefixes - and these include core julia developers. This is just from the first search page :) |
If anything, it's natural to show both the parent package name and extension name in any messages - be it Pkg, errors, or whatever. |
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.
LGTM. We should add the Accessors
prefix for now, if it is not needed in future anymore, we can always drop it again. Thanks @devmotion
Extensions with non-unique name cause collisions and hence break e.g. compilation of sysimages. This PR adds a prefix to the extension to work around that issue. See JuliaMath/ChangesOfVariables.jl#13 for a longer discussion.