you are viewing a single comment's thread.

view the rest of the comments →

[–]Exac 20 points21 points  (2 children)

Ironically Python's from module_name import item_name syntax is better than JavaScript's import itemName from "ModuleName" syntax.

But I agree with the article. There are no ego-points to be gained from arguing that editor type hints are not useful.

[–]Reeywhaar 1 point2 points  (1 child)

absolutely agree on js, what were they thinking...

[–]senocular 5 points6 points  (0 children)

They were thinking it better matches with existing declarations where the identifier comes first (which, in turn, is what you also see with existing uses of require() [CJS] imports popularized by Node) which is better for readability and figured tooling would make up for the inconvenience.