ballercat/walt

Destructuring Assignment

Open

#64 opened on Jan 7, 2018

View on GitHub
 (1 comment) (1 reaction) (0 assignees)JavaScript (4,637 stars) (155 forks)batch import
help wantedmoderate

Description

Goal

Allow users to use destructuring assignment.

Overview

Destructuring assignment is pretty helpful and should be implemented. Destructured variables should become locals. Destructured variables should not need type annotation as they can be inferred, so that is super useful.

Acceptance Criteria

  • const [x, y] = arrayObject;
  • const {x, y} = vectorObject;
  • Type annotations for destructured locals are not necessary
  • Tests

Contributor guide