ImportSpecifierSet syntax

Erik Arvidsson erik.arvidsson at gmail.com
Sun Sep 8 08:55:13 PDT 2013


http://wiki.ecmascript.org/doku.php?id=harmony:modules#syntax

Currently ImportSpecifierSet is proposed to start with "{" and end
with "}". This made a lot more sense when we reused the destructuring
syntax. Now that we are using "as", these curlies look like a remnant
from the past.

import {a as b, c as d} from "e";

I'm proposing we remove these curly braces, giving:

import a as b, c as d from "e";

Same issue applies to ExportSpecifierSet.

-- 
erik


More information about the es-discuss mailing list