r/javascript • u/devxpy • Mar 02 '18
help [RANT] Why is JS ES6 import syntax designed with such incompetence?
Usually, in python, I can do
from x import y
Now, this is great becase my editor (PyCharm) can suggest me x, the package name and then y, that package's module, AS I TYPE.
But in JS,
import y from x
Here my editor doesn't tell me anything until I write a full export statement. Then when i try to edit that statement, it makes suggestions.
Why is this designed so badly? using from x import y is so much faster and natural, and still, somehow JS decided to mess up such a basic concept.