top | item 39267614

(no title)

Taig | 2 years 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.

discuss

order

Timot05|2 years ago

Aspects of the python lexer and parser implementation were borrowed from python, which is partly why we ended up here. I do agree though.

echoangle|2 years ago

Python does from x import y though.

napowderly|2 years ago

Agreed, we need to flip this.

amonith|2 years ago

Disagree. 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.

mplewis|2 years ago

Really? When I type import { someVal in JS, VSCode autocompletes it to import { someValue } from “somePackage”. I haven’t had issues here.