ballercat/walt

Destructuring Assignment

Open

#64 建立於 2018年1月7日

在 GitHub 查看
 (1 留言) (1 反應) (0 負責人)JavaScript (155 fork)batch import
help wantedmoderate

倉庫指標

Star
 (4,637 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南