Skip to content

if-let binding #3833

@kentosugama

Description

@kentosugama

In addition to let-else #3817, if-let would let users recover from pattern match failure.

Most likely implemented as direct desugaring in the parse to a switch with a wildcard case.

https://doc.rust-lang.org/rust-by-example/flow_control/if_let.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions