Module syntax

Axel Rauschmayer axel at rauschma.de
Thu Jun 6 11:05:11 PDT 2013


On Jun 6, 2013, at 19:42 , David Herman <dherman at mozilla.com> wrote:

> On Jun 5, 2013, at 3:59 PM, Axel Rauschmayer <axel at rauschma.de> wrote:
> 
>> This makes a lot of sense. It would obviate the need for braces, right?
> 
> No, at least not for imports. This is only about exports. I'd argue we should keep the braces on export { x, y, z } for symmetry with imports.


OK, so you don’t want to replace

    import foo from "single_export_module";

with (braceless!)

    import default as foo from "single_export_module";


-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130606/43cdb3c4/attachment.html>


More information about the es-discuss mailing list