ballercat/walt

Destructuring Assignment

Open

#64 ouverte le 7 janv. 2018

Voir sur GitHub
 (1 commentaire) (1 réaction) (0 assignés)JavaScript (155 forks)batch import
help wantedmoderate

Métriques du dépôt

Stars
 (4 637 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur