-
Notifications
You must be signed in to change notification settings - Fork 6
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
Rename package #4
Comments
Or we should figure out some way of allowing a module and a type exported by that module to share the same name peacefully. cc: @JeffBezanson. |
If that's feasible, it would be nice. Since this problem with Options became clear, it's affected my naming of things in other packages . |
+1 for allowing modules and types to share names. |
Unless there are objections, I'm going to go ahead and change the name of the type to |
Well, end users don't see the type name, but package/code authors usually write something like |
Definitely. |
+1 on the name change. |
@timholy sounds good |
We can address this as part of a general redesign of how modules are located. See issue JuliaLang/julia#2375. If |
OK, I'll sit tight and see what unfolds. |
If this is going to get renamed, I would hope for a better name than OptionsMod or Opts. Neither of these (nor Options) is particularly descriptive. I would quote point four from the documentation:
|
@s2maki, this package was written before keyword arguments existed in Julia, and is still around for compatibility purposes for older packages. It should be deprecated at some point, and probably won't be renamed. For newer code (or old code that you want to upgrade), check out http://docs.julialang.org/en/release-0.3/manual/functions/#keyword-arguments. |
(Closing this. If it's still relevant for some reason, please reopen.) |
This package is still used by ArgParse, see carlobaldassi/ArgParse.jl#13. |
Thanks for the clarification, @carlobaldassi. |
@carlobaldassi, how much work would it be to make ArgParse not use Options? Or are you keeping it as is for compatibility with 0.2? |
Compatibility with 0.2 is not a priority of mine, just a consequence of the fact that I did not have the need to bump the version until now. |
Yes, there's no hurry, but I think that once 0.4 is out, deprecating all use of 0.2 would make sense. |
Update: I have now updated ArgParse to avoid the dependency on this package. |
What functionality does it have that keywords don't? I'd really like to get rid of Options.jl, tbh... |
No recent versions of anything still use this. It should probably just be deprecated and moved to JuliaArchive. @carlobaldassi I sent you an invite to that org. |
Renaming packages after they've been registered is kind of a pain. I moved this to JuliaArchive and we can think about officially deprecating it in METADATA. |
In light of the recent auto-require changes, this package should probably be renamed to OptionsMod, so that
using OptionsMod
is sufficient to load it.Either that, or the module name should be changed to
Options
and the type to something else (Opts
?).The text was updated successfully, but these errors were encountered: