-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-let_elseIssues related to let-else statements (RFC 3137)Issues related to let-else statements (RFC 3137)S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.T-langRelevant to the language teamRelevant to the language team
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 { ... }
)
jhpratt, Nokel81, inquisitivecrystal, Fishrock123, Qyriad and 112 moreIron-E, nix-enthusiast, betseg, kekeimiku, Celthi and 3 moreWyverald, pthariensflame, robatipoor, solson, imjasonmiller and 19 morebetseg and mradcliffepthariensflame, robatipoor, solson, dunnock, imjasonmiller and 38 moreschneiderfelipeOriginalimoc
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-let_elseIssues related to let-else statements (RFC 3137)Issues related to let-else statements (RFC 3137)S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.T-langRelevant to the language teamRelevant to the language team
Type
Projects
Status
Feature Complete