[swift-evolution] [Proposal] implicit `if let`

Manuel Carrasco Molina manuel at carrascomolina.com
Wed Oct 11 13:29:05 CDT 2017


Hi,

We usually do this

If let foo = foo {
// bar
}

What if the compiler would understand

If let foo {
// bar
}

As if the `= foo` would be there?

I’d find it great syntactic sugar.


More information about the swift-evolution mailing list