5 ms·
The author seems to not be up-to-date with modern Swift: > Adding compile time static dispatch, and making dynamic dispatch and message passing a second class
by saagarjha 8y ago
The author seems to not be up-to-date with modern Swift:
> Adding compile time static dispatch, and making dynamic dispatch and message passing a second class citizen and introspection a non-feature.
There was a proposal recently to make this first-class, and not just limited to Objective-C.
> Classify the implicit optionality of objects purely as a source of bugs.
Not purely, but often optionality is a source of bugs.
> At the same time it failed to attack, solve and support some of the most prominent current and future computing problems, which in my book all would be more important than most of the areas it tries to be good in:
> concurrency
Concurrency is being hashed out, and will probably be available in a later version of Swift.
> overall API interaction complexity
The Swift API is refreshingly small. Are you talking about Foundation?
> debug-ability
What's wrong with the debug-ability, especially with solutions like playgrounds?
> actual App and UI development
…this is literally the main use of Swift.
> developer productivity
Personally, I feel it's much improved.
> While Apple did a great job on exposing Cocoa/Foundation as graspable into Swift as they could, there is still great tension in the way Swift wants to see the world, and the design paradigms that created the existing frameworks. That tension is not resolved yet, and since it is a design conflict, essentially can't be resolved. Just mitigated. From old foundational design patterns of Cocoa, like delegation, data sources, flat class hierarchies, over to the way the collection classes work, and how forgiving the API in general should be.
This is almost a non-issue these days, unless you're interacting with C APIs.
> Just imagine a world where Objective‑C would have gotten the same amount of drive and attention Swift got from Apple?
The ten years before Swift existed?
- blattimwind 8y ago> There was a proposal recently > Concurrency is being hashed out, and will probably be available in a later version of Swift. TFA: > It keeps defering the big wins to the future
- EpicEng 8y ago>The author seems to not be up-to-date with modern Swift: > Adding compile time static dispatch, and making dynamic dispatch and message passing a second class citizen and introspection a non-feature. There was a proposal recently to make this first-class, and not just limited to Objective-C. > concurrency >Concurrency is being hashed out, and will probably be available in a later version of Swift Sounds to me like "modern swift" doesn't actually have any if these things. Did you mean to say that the author wasn't familiar with some future version of swift that doesn't yet exist?
- saagarjha 8y agoDynamic calls are available today. Concurrency is not.
- valuearb 8y agoYea, author was way off base on productivity. I can write much faster in Swift than Objective C because I spend zero time running down wild pointer bugs, as well as a dozen other classes of obscure bugs the type system prevents.