Oh, right. Didn’t realize it could be abused this way. I guess there is no interest to define constructs like “LetOrConst LexicalBinding" and “var VariableDeclaration” just for this scenario?
(This was only send to Kevin by mistake, I hope you won’t mind it that I send it again) > On Dec 13, 2014, at 12:44 PM, Kevin Smith <[email protected]> wrote: > > From https://people.mozilla.org/~jorendorff/es6-draft.html#sec-exports > <https://people.mozilla.org/~jorendorff/es6-draft.html#sec-exports>, it seems > that "export default var a = 1;” is not valid in es6. I wonder why that’s the > case. You can already do "var a = 1;export default a;”. Why not make "export > default var a = 1;” valid? > > Exporting a variable declaration list as "default" wouldn't make sense: for > one, the list can have more than one element: > > export default var a, b, c; // Non-sensical > >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

