import.meta and TC39 process as a whole
tj.crowder at farsightsoftware.com
Sat Aug 5 13:10:28 UTC 2017
On Sat, Aug 5, 2017 at 1:46 PM, Naveen Chawla
<naveen.chwl at gmail.com> wrote:
> I think it has to be an identifier, especially given proposals
> like `meta`, dynamic functionality etc.
There's a slight misunderstanding here about the term "identifier" that may
be preventing your fully understanding what I'm saying. `import` isn't, and
cannot be, an identifier, because it's a keyword. See the [Identifiers
section] of the spec. This is the fundamental difference between
`import` and `document` (or perhaps more properly [since `document` isn't a
Understanding the difference between an identifier and a keyword may help
you understand better what I'm saying regarding why `module` *as an
identifier* might be a problem.
I'll leave the question of whether passing that identifier's value around
would be a problem to people more familiar with the complexities of the
import mechanisms. As I've said several times now: I *suspect* it's a
problem, I don't *know* that it is.
-- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss