What's new in Swift 5.6? Is there summary?

Anywhere? I can't find this in the usual places I know of.

The changelog is not complete, but is one good place to start.

2 Likes

:+1::pray:

I though SE-0335: Introduce existential any is in there, but it's not.

What is the benefit of SE-0315 Type placeholders (formerly, "Placeholder types")?

The example:

// This is OK--the compiler can infer the key type as `Int`.
let dict: [_: String] = [0: "zero", 1: "one", 2: "two"]

The compiler can just infer both the key and value type:

// why not just let the compiler infer the whole thing?
let dict = [0: "zero", 1: "one", 2: "two"]

The proposal that you linked to has some more compelling examples.

3 Likes