kodecocodes / swift-style-guide

The official Swift style guide for Kodeco.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pls update Readme file to reflect the newest changes in `if let` syntax introduced in Swift 5.7

kpacholak opened this issue · comments

This new syntax comes with this change
https://github.com/apple/swift-evolution/blob/main/proposals/0345-if-let-shorthand.md

We can add to the Readme Optionals section something like this:

Notes: Swift 5.7 introduced new shorthand syntax for unwrapping optionals into shadowed variables:

if let textContainer {
  // do many things with textContainer
}

I've already created a PR
#359