import { foo, bar } as obj from 'module

Isiah Meadows isiahmeadows at gmail.com
Sat Dec 16 01:26:10 UTC 2017


Okay. Thanks for the clarification for what this is actually asking
for. (I take back my "I could seriously use this" note from earlier.)
-----

Isiah Meadows
me at isiahmeadows.com

Looking for web consulting? Or a new website?
Send me an email and we can get started.
www.isiahmeadows.com


On Fri, Dec 15, 2017 at 9:07 AM, Darien Valentine <valentinium at gmail.com> wrote:
>> To clarify, I was basically proposing exposing both the MNSEO with all
>> export members (like * as foo) as well as live bindings from the module,
>> separately. Something along the lines of a combination of the two.
>
> Though I agree it would be nice to be able to do that in a single statement,
> too, I’d imagine that adding it would take the form along the lines of
> introducing `NamedImports , NameSpaceImport` or its inverse to
> `ImportClause` — e.g.
>
>     import { foo, bar }, * as baz from 'qux';
>
> That is, there’s already syntax for both, they’re just not currently
> permitted in a single statement — whereas what’s proposed here (`{} as`) is
> a construction that doesn’t currently exist for a type of import that
> doesn’t currently exist.
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>


More information about the es-discuss mailing list