-
-
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
automatically search Base
in using
and import
?
#20237
Comments
That could cause issues with anywhere a package name collides with a base module name, as with Iterators. |
Indeed, but arguably it's not a good idea for a package to have the same name as a submodule of Base – |
The plan when Base.Iterators was introduced was to reexport everything from Base.Iterators in Iterators.jl. Currently that has not happened because of incompatibilities in Base methods and Iterators.jl methods (e.g. With 0.4 and Dates.jl, I would use |
I think the best way to achieve this is the "default packages" idea. Any submodule of Base that's useful to import should be moved out to a separate toplevel package, so it's not inside Base anymore. |
Agreed, but that makes the name conflict problem even worse doesn't it? |
I see that as the same as package name conflicts in general. Why can't there be two packages called |
I just started using
(maybe this) (this may be) #30# |
Shouldn't it be using PackageRepository.Package
using Base.Package with using Package trying both Metadata and Base and reporting
? |
I propose closing this. I don't think we want |
💯 Since we're moving most packages that were previously inside of |
It seems a bit weird that you can do
using SomePackage
and it will just work yet to use something that's defined inBase
you need to writeBase.Test
orBase.Markdown
. Now that we can put non-strings intoLOAD_PATH
it probably makes sense that if you stick a module inLOAD_PATH
you should automatically look at its submodules. Then one could dopush!(LOAD_PATH, Base)
and be allowed to dousing Test
. Of course, that's still a little weird since for all other kinds of module we're asking for the module by its "full name" – although of course, once a module is loaded intoMain
that can sort of be considered its full path.The text was updated successfully, but these errors were encountered: