-
Notifications
You must be signed in to change notification settings - Fork 195
Remove IntoOwned
#624
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
Remove IntoOwned
#624
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.
I think this looks good. Left some comments, but let's merge soon.
Thanks for the review, and agree about wanting to land this where possible. I'm pretty confident that the path ends up in the intended state, and checkins are perhaps locally clarifying even if the final arc of the store isn't yet clear. :D |
This PR moves the functionality of
IntoOwned
into the types that first provide access to the owned and borrowed types. The goal is to remove the freestanding requirement that a reference type should implementIntoOwned
, as this is generally hard to introduce if it does not already exist. On the other hand, it is relatively easy for a container to provide this functionality, as it only needs to wrap existing logic (assuming it exists; if not there is a different problem). The main distinction is that we are happy to create new containers, or wrapper containers, etc. but much less happy to create new types that they contain.There is a surprising amount of unmucking to do along the way, and this description will be updated with the narrative arcs if it is successful. For the moment, it is a draft PR revealing the work.