Similar to object property literal shorthand which is also identifier only.
On Tue, Jan 26, 2016 at 3:45 PM Paul Tyng <[email protected]> wrote: > No it does not compete with the string literal version (see my proposal, > no quotes), its an identifier only. 3d-is-cool is not a valid identifier > so couldn't work, neither would es6-shim. > > On Tue, Jan 26, 2016 at 3:44 PM Jordan Harband <[email protected]> wrote: > >> also, would identifier would `import '3d-is-cool';` create? >> >> On Tue, Jan 26, 2016 at 12:43 PM, Jordan Harband <[email protected]> >> wrote: >> >>> That is currently valid syntax for a module that has no exports - ie, a >>> module for which you're relying solely on side effects. One popular usage >>> is `import 'es6-shim';` for example. >>> >>> On Tue, Jan 26, 2016 at 12:31 PM, Paul Tyng <[email protected]> wrote: >>> >>>> I went through the archives and existing proposals, I didn't see one >>>> similar to this. I apologize if its been covered before. I thought that >>>> redundant import statements could be simplified with a shorthand that works >>>> similar to object literal notation. >>>> >>>> import fs; >>>> >>>> vs >>>> >>>> import fs from 'fs'; >>>> >>>> https://github.com/paultyng/proposal-shorthand-import >>>> >>>> I would welcome any feedback. >>>> >>>> Thanks, >>>> Paul Tyng >>>> >>>> _______________________________________________ >>>> es-discuss mailing list >>>> [email protected] >>>> https://mail.mozilla.org/listinfo/es-discuss >>>> >>>> >>> >>
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

