Module Comments

Claus Reinke claus.reinke at
Thu Dec 6 01:41:35 PST 2012

> Well, the thing is it isn't consistent with the destructuring meaning: dropping the curlies here 
> means extracting a single export (aka property), which is not what it means in destructuring 
> assignment/binding anywhere else.
> But that said, the convenience may well still trump the inconsistency.

I think I'd prefer consistency here, as it also allows to get rid of

    import "foo" as foo;

and replace it with

    import foo from "foo";

which keeps the order of

    import {x,y} from foo

and it is all just module-level destructuring (fewer new concepts).


More information about the es-discuss mailing list