-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Mark ScopedValue, with and @with as public #55095
Conversation
This is exported from the ScopedValues module into Base, but not exported from Base, and therefore not marked as public.
This comment was marked as resolved.
This comment was marked as resolved.
BTW, I don't think you want to tag the Github user |
It can't be marked as public inside ScopedValues because it is exported (this errors). It also makes no sense to export it from ScopedValues to Base, have it be public in ScopedValues but private in Base. If it was supposed to be private in Base, why is it exported to Base? |
using Base.ScopedValues
# or:
using Base.ScopedValues: ScopedValue, with I would like to add the |
I don't think these names should be loaded into Base. I'd rather see |
Stop loading `ScopedValues` with `using` so folks use `ScopedValues.with` or `using ScopedValues` rather than `Base.with`. Implements #55095 (comment) ~Have to bump the StyledStrings stdlib to include JuliaLang/StyledStrings.jl#80 Done --------- Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Stop loading `ScopedValues` with `using` so folks use `ScopedValues.with` or `using ScopedValues` rather than `Base.with`. Implements JuliaLang#55095 (comment) ~Have to bump the StyledStrings stdlib to include JuliaLang/StyledStrings.jl#80 Done --------- Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Stop loading `ScopedValues` with `using` so folks use `ScopedValues.with` or `using ScopedValues` rather than `Base.with`. Implements #55095 (comment) ~Have to bump the StyledStrings stdlib to include JuliaLang/StyledStrings.jl#80 Done --------- Co-authored-by: Dilum Aluthge <dilum@aluthge.com> (cherry picked from commit e1aefeb)
I guess this can be closed now, |
This is exported from the ScopedValues module into Base, but not exported from Base, and therefore not marked as public.