Module Comments

Matthew Robb matthewwrobb at gmail.com
Thu Dec 6 08:53:50 PST 2012


Well the argument being that as it stands it's inconsistent having the
identifier on the RHS for import from and LHS in import as:

import baz from "foo";
import "foo" as foo;

I'm just throwing out simple options for solving that inconsistency.

Possibly even thinking about them as declarations makes the simplest sense
anyway:

var foo = import "foo";
var { baz } = import "foo";


On Thu, Dec 6, 2012 at 8:49 AM, Andreas Rossberg <rossberg at google.com>wrote:

> On 6 December 2012 17:46, Matthew Robb <matthewwrobb at gmail.com> wrote:
> > What about trying it the other way, flip everything.
> >
> > import "foo" as bar;
> > import "foo" as { baz }
>
> Hm, I don't understand. What would that solve?
>
> /Andreas
>



-- 
- Matthew Robb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121206/e4bc1c0f/attachment.html>


More information about the es-discuss mailing list