Skip to content

Improve cross-borrowing ergonomics #368

Open
@pnkfelix

Description

@pnkfelix

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 borrows a).

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:

Relevant rust-lang/rust issues:

Relevant Meeting Snippets

Potentially relevant discuss links (pre-RFCs, etc):

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-borrowckBorrow checker related proposals & ideasA-coercionsProposals relating to coercions.A-referencesProposals related to referencesA-typesystemType system related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions