Improve cross-borrowing ergonomics #368
Labels
A-borrowck
Borrow checker related proposals & ideas
A-coercions
Proposals relating to coercions.
A-references
Proposals related to references
A-typesystem
Type system related proposals & ideas
T-lang
Relevant to the language team, which will review and decide on the RFC.
Many Rust users say that the ergonomics for borrowing / deref / reborrowing is poor, especially compared to how magically dot (
a.f
) will behave (with respect to how it auto-derefs and borrowsa
).This issue is meant to act as a place to collect the various proposals that have been put forward to resolve this. I guess it might be thought of as a meta-issue, except that I think it will mostly be collecting references to RFC PR's, rather than other issues.
(My current plan is to try to put links to all the appropriate PR's into this description itself; people can feel free to refer back to this issue, but I'm not planning on annotating each PR with a link, especially since the list of references inserted by github can get somewhat polluted... I will also try to link to meeting minutes if I can find them.)
Proposals:
&
to be a borrow operator. #248Relevant rust-lang/rust issues:
Relevant Meeting Snippets
==
and autoderefPotentially relevant
discuss
links (pre-RFCs, etc):The text was updated successfully, but these errors were encountered: