Why not have `import module-name.export1` in javascript?
问题 What is the design limitation behind the ES6 import statement syntax? import { export1 } from "module-name"; as shown here. Why not have import module-name.export1 If somehow having the 'import' keyword in the first place is so important, why not use it like that? For comparison consider several other popular languages: Java : import package.subpackage.ClassName; Python : from module import SomeClass C#: using System.Text; From left to right: broadScope -> module -> particularItem . While in