Skip to content

Initiative: ? traits, try blocks, yeet exprs, oh my #160

Closed
@scottmcm

Description

@scottmcm

Proposal

Summary and problem statement

Getting existing error handling capabilities to stable, and exploring future possibilities to ensure compatibility.

Motivation, use-cases, and solution sketches

This is basically https://rust-lang.github.io/rfcs/0243-trait-based-exception-handling.html -- while ? is available on stable, the traits behind it are not, try blocks are not, and there's continued interest (https://areweyeetyet.rs/) in exploring some of the future possibilities it brought up.

There's sortof a defacto initiative going on here -- see the mention in these meeting notes https://github.com/rust-lang/lang-team/blob/master/design-meeting-minutes/2022-03-09-lang-roadmap.md#q-which-active-initiatives-are-missing -- but it seems like it would be helpful to have one to track it explicitly.

Links and related work

Some examples of things that could be included here:

Initial people involved

What happens now?

This issue is part of the lang-team initiative process. Once this issue is filed, a Zulip topic will be opened for discussion, and the lang-team will review open proposals in its weekly triage meetings. You should receive feedback within a week or two.

This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langfinal-comment-periodThe FCP has started, most (if not all) team members are in agreementmajor-changeMajor change proposalto-announceNot yet announced MCP proposals

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions