-
Notifications
You must be signed in to change notification settings - Fork 893
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 temp::Cfg to temp::Context #3761
Conversation
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.
The intention of the original naming is that it should be referenced with temp::Cfg
, although I think Cfg
is definitely confusing...
Frankly speaking I would personally prefer temp::Context
, but since we already have other stuff like download::DownloadCfg
I think this is acceptable as well.
|
That's fair -- changed it to
Why? Is there anything tracking those? IIRC we don't even pretend to have a stable library API. (FWIW in the many projects that I maintain none use |
@djc I agree with you that we don't have a stable set of external APIs. OTOH I do have the impression somewhere down the issue threads there's a post saying in the long run we're moving this way... but I failed to find the exact location. Anyway, I think it'd be better to just forget about what I said on this one for now 🤦♀️ |
We don't have an external API at all. I think we should have a process interface that is machine readable - e.g. protobuf - but not a use-as-library interface, since we have little to no evidence that there is a need for a library interface. So there is no need to pay a compatibilty tax on APIs |
While reviewing #3754 I was a little surprised to note that the
temp::Cfg
type was different fromconfig::Config
(and then apparently there's alsodist::config::Config
). As far as I can seetemp::Cfg
also really doesn't represent "configuration" in the sense that it's input provided by the user or an external process. Renamed it toTemporaryContext
instead.