> Since it is just sugar, and supposed to be equivalent to the
> expansion, you (fortunately) would get an error (statically).
>
OK, then suppose we have these two separate forms:
import x from "url"; // Bind x to the anonymous export, if defined,
otherwise error
and
import module x from "url"; // Bind x to the module instance
In the vast majority of cases the "module" keyword above can be inferred
correctly at link-time based on whether or not there is an anonymous export
in the target module.
If it were important for the user to disambiguate in those rare cases, and
load the module instance instead of the anonymous export, then she could
simply provide the optional "module" keyword.
Does that work?
- Kevin
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss