WWDC 2018 What's New in Swift Recap
roadfiresoftware.com
WWDC 2018 What's New in Swift Recap
1–10 of 45 posts
Re: WWDC 2018 What's New in Swift Recap
#2Re: WWDC 2018 What's New in Swift Recap
#3has swift made the leap to server side yet? i keep hearing mumblings about that.
Never tried it though. I don't select stacks primarily based on programming language.
Re: WWDC 2018 What's New in Swift Recap
#4How compares with Objective-C compile times?
Re: WWDC 2018 What's New in Swift Recap
#5Re: WWDC 2018 What's New in Swift Recap
#6Enums are really the best feature of Swift. I enum all the things everywhere. This is kind of the finishing touch to it.
Binary stability would be nice. I do care about the download sizes of my apps. What's really missing from the language is a way to add custom tags like @discardableResult @objc to define some kind of property. It's such a kludge to set up things like ViewModels while I really would like to have something like:
@twoWayBinding[username]
lazy var username: UILabel = { /* etc */ }()Re: WWDC 2018 What's New in Swift Recap
#7"Faster builds" How compares with Objective-C compile times?
let result = jsonList.map { Class(from: $0) }.filter { $0.isSelected }.map { T(from: $0 }
Or worse: let myDict = ["key": 1, "key2": 0.2, "key3": "something"]
It has to figure out it's not an int, not a number but an Any dict. Complexity to figure out the real type can quickly ramp up.Re: WWDC 2018 What's New in Swift Recap
#8"Faster builds" How compares with Objective-C compile times?
Still not as fast and probably Objective-C got a speed boost as well. Objective-C is a very simple language and types are quite explicit. In Swift you have implied types like: let result = jsonList.map { Class(from: $0) }.filter { $0.isSelected }.map { T(from: $0 } Or worse: let myDict = ["key": 1, "key2": 0.2, "key3": "something"] It has to figure out it's not an int, not a number but an Any dict. Complexity to figu…
foo->bar()->baz()
And the compiler has to get the type for the bar() result. That's one a small step from: let x = foo->bar()
Also that dictionary is most likely parsed and assigned a type in the expression whether you specify the variable type or not.Re: WWDC 2018 What's New in Swift Recap
#9has swift made the leap to server side yet? i keep hearing mumblings about that.
Vapor apparently gets favorable reviews by those who drank the Kool-Aid: https://vapor.codes/ Never tried it though. I don't select stacks primarily based on programming language.
Re: WWDC 2018 What's New in Swift Recap
#10I bet this doesn't really happen, though it probably makes the day when it really happens closer.
(I don't just mean they might miss the date, but that (1) they miss the date by a lot; and/or (2) they drop binary compatibility from Swift 5; and/or (3) they claim they've achieved binary compatibility but it doesn't out to be true for long, less than 5 years )