ballercat/walt

Destructuring Assignment

Open

#64 aperta il 7 gen 2018

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)JavaScript (155 fork)batch import
help wantedmoderate

Metriche repository

Star
 (4637 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor