Closed kentcdodds closed 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()".
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()
.
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" ?
I'd probably say "that's an import call" (just like I'd say "that's a super call").
Cool. Sounds good, thanks!
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"