Closed
Description
This is a tracking issue for RFC 3137: let-else statements.
The feature gate for the issue is #![feature(let_else)]
.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Implement the RFC (Introduce
let...else
#87688) - Adjust documentation: reference PR at Document let else statements reference#1156
- Stabilization PR: Stabilize
let else
#93628
Unresolved Questions
- Readability in practice: Will
let ... else { ... };
be clear enough to humans in practical code, or will some introducer syntax be desirable? - Conflicts with if-let-chains: Does this conflict too much with the if-let-chains RFC or vice-versa? Neither this feature nor that feature should be stabilized without considering the other.
- Amount of special cases: Are there too many special-case interactions with other features?
- Grammar clarity: Does the grammar need to be clarified? This RFC has some slightly unusual grammar requirements.
Implementation history
- Introduce
let...else
#87688 implemented let-else. - Implement let-else type annotations natively #89841 adds support for type annotations in let-else (
let x: Type = ... else { ... }
)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Feature Complete