On 16 April 2013 18:55, David Herman <[email protected]> wrote: > I'm gonna bite the bullet here and tempt the bikeshedding demons by making an > incremental suggestion for a syntax for anonymous import/export that adds to > your syntax. > > export default f(1, 2, 3); // creates anonymous export by > evaluating RHS expression > > import default as foo from "foo"; // binds the anonymous export from > module "foo" to variable foo
OK, you asked for it. How exactly is that superior to export let it = f(1, 2, 3) import it as foo from "foo" which is both shorter and does not need any extension to the syntax at all? /Andreas _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

