[swift-evolution] [Pitch] Introducing the "Unwrap or Die" operator to the standard library

Alan Westbrook alan at rockwoodsoftware.com
Wed Jun 28 21:50:09 CDT 2017


> On Jun 28, 2017, at 6:38 PM, Xiaodi Wu via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Sorry, I fail to see how either wording enhances the expression of why this operation is taking place. The entire explanation seems self-evident to me in `!`.

It may not be though. How many times have you seen a force unwrap and immediately thought the programmer to just be lazy, or new to Swift?

The !! syntax proposal at least makes these forces clearly an intentional and thought out endeavor.

Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170628/3dcd7ef7/attachment.html>


More information about the swift-evolution mailing list