Skip to content

Reverse evaluation order of lhs destructuring of fields #2012

@andrew4328

Description

@andrew4328

Currently order is right to left, which is counter-intuitive. It was easy to write the parser for this way, but the effect is poor quality.

match {
   T { a:1, b:2 } => ...;
};

# evaluates b before a

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