-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
Having to constantly write code like this:
alt optional_value {
some (value) { do something; }
_ {/*do nothing*/}
}
Is unnecessary verbose in my opinion, and gets annoying to have to constantly write. I would like to be able to say something like:
if (let some(value) = optional_value) {
do something;
}
Although it doesn't have to be that exact syntax.
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.