5 ms·
`import Y from X` is a terrible language design decision, established by the JavaScript ecosystem. It should be along the lines of `import X.Y` or `from X impor
by Taig 3y ago
`import Y from X` is a terrible language design decision, established by the JavaScript ecosystem. It should be along the lines of `import X.Y` or `from X import Y` so that autocomplete tools can assist you.
- napowderly 3y agoAgreed, we need to flip this.
- amonith 3y agoDisagree. I rarely remember what lib has the class/function/whatever I need. Doesn't help that some libs often use "proprietary" names (e.g. "Uno", "Avalonia", "Rotativa"). I often don't even write "imports" myself. I use stuff in code and let my IDE autoimport stuff.
- Timot05 3y agoAspects of the python lexer and parser implementation were borrowed from python, which is partly why we ended up here. I do agree though.
- mplewis 3y agoReally? When I type import { someVal in JS, VSCode autocompletes it to import { someValue } from “somePackage”. I haven’t had issues here.