top | item 41572193

(no title)

akoncius | 1 year ago

did not find anything metioned about namespaces/packages support? quite disappointing :( this is the main disadvantage for my tastes

discuss

order

hombre_fatal|1 year ago

The unqualified imports are definitely a major pain point. In a large Swift app I find myself having to be eternally vigilant organizing my files so that I'm not dumping surprises into the import site.

Makes me appreciate how even Node.js got it right so early on.

throwitaway1123|1 year ago

I also disliked unqualified imports. I can never get used to languages where you can 'import foo' or 'use foo' and it just dumps a bunch of symbols into the current scope. That combined with Swift's 'implicit member expressions' makes it difficult to read code outside of an IDE (although I understand why they made that tradeoff given some of the long identifiers Swift inherited) [1].

[1] https://github.com/Quotation/LongestCocoa