tc39 / proposal-dynamic-import

import() proposal for JavaScript
https://tc39.github.io/proposal-dynamic-import/
MIT License
1.86k stars 47 forks source link

What do we call this? #39

Closed kentcdodds closed 7 years ago

kentcdodds commented 7 years ago

In conversation about it, we don't want to call it the "import function" because it's function-like and we don't want people to be confused. So what do we call it? If I were to say: "And here, we pass the path to the module to the import ___"

Dynamic import I guess? I'm up for ideas :) But we should probably decide before people start calling it the "import function"

domenic commented 7 years ago

"we pass the path to the module to import()".

That is also what I would say for "we pass the arguments to super()".

ljharb commented 7 years ago

I agree - even spoken aloud, "pass the path to import" implies it's not the top-level static import statement, but rather the dynamic import().

kentcdodds commented 7 years ago

OK, what if I'm looking at code with someone and someone points at it and says "what's that?" I guess I'd say: "That's a dynamic import" ?

domenic commented 7 years ago

I'd probably say "that's an import call" (just like I'd say "that's a super call").

kentcdodds commented 7 years ago

Cool. Sounds good, thanks!