Skip to content

if let semantically equivalence to if is wrong w.r.t. scope #47

Closed
@Havvy

Description

@Havvy

The equivalence is wrong because the scope of the expression in the predicate has to live as long as the consequent because of the ability to ref in the pattern.

Or something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugIncorrect statements, terminology, or rendering issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions