omit return keyword

Here’s the code if you want to experiment with it:

// Functions
func helloWorld() -> String {
    "Hello, world!"
}

// Closures
let helloWorld = {
    "Hello, world!"
}

// Computed Properties
var helloWorld: String {
    "Hello, world!"
}
Previous
Previous

concise [weak self]

Next
Next

iOS version dropped reminder