ballercat/walt

Destructuring Assignment

Open

#64 opened on 2018年1月7日

GitHub で見る
 (1 comment) (1 reaction) (0 assignees)JavaScript (4,637 stars) (155 forks)batch import
help wantedmoderate

説明

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

コントリビューターガイド