Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Map named arguments to es6 destructuring #180

@vsmenon

Description

@vsmenon

@jmesserly has suggested mapping Dart named parameters to ES6's new destructuring pattern. This is not yet implemented in Chrome / V8 AFAIK.

E.g., map this Dart:

void foo(p1, p2, {p3: 0, p4}) {
  ...
}

to this ES 6:

function foo(p1, p2, { p3=0, p4=null } = {}) {
  ...
} 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions