Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement property destructuring #39285

Merged
merged 2 commits into from
Jan 23, 2021
Merged

Commits on Jan 21, 2021

  1. implement property destructuring

    This currently only allows the form `(; a, b) = x` and lowers this to calls to `getproperty`. We could think about whether we want to allow specifying default values for properties as well, or even some kind of property renaming in the lhs. We could even allow slurping unused properties, but all of that sounds more difficult to work out in detail and potentially controversial, so I left this as an error for now.
    
    fixes #28579
    simeonschaub committed Jan 21, 2021
    Configuration menu
    Copy the full SHA
    5f60a84 View commit details
    Browse the repository at this point in the history
  2. add NEWS entry

    simeonschaub committed Jan 21, 2021
    Configuration menu
    Copy the full SHA
    d2e2a9b View commit details
    Browse the repository at this point in the history