ballercat/walt

Destructuring Assignment

Open

#64 建立於 2018年1月7日

在 GitHub 查看
 (1 留言) (1 反應) (0 負責人)JavaScript (4,637 star) (155 fork)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

貢獻者指南