[swift-evolution] guard let x = x

Martin Waitz tali at admingilde.org
Tue Nov 1 05:09:59 CDT 2016


Hi,

> Well, "guard x != nil" does not unwrap x. An additive proposal must make clear the difference between testing if an optional is nil and unwrapping it.

Of course, we could specify something like: „after checking that some Optional is not nil, it is treated as an implicitly unwrapped optional“.

— Martin


More information about the swift-evolution mailing list