6 ms·
did not find anything metioned about namespaces/packages support? quite disappointing :( this is the main disadvantage for my tastes
by akoncius 2y ago
did not find anything metioned about namespaces/packages support? quite disappointing :( this is the main disadvantage for my tastes
- hombre_fatal 2y agoThe 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 2y agoI 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 https://github.com/Quotation/LongestCocoa