[swift-evolution] Allow let binding of non-optionals

Joe Groff jgroff at apple.com
Thu Jan 7 13:02:02 CST 2016


> On Jan 7, 2016, at 10:59 AM, Jacob Bandes-Storch via swift-evolution <swift-evolution at swift.org> wrote:
> 
>         do let value2 = somethingNonOptional()
> 

'case let' already works like this, by declaring a pattern 'let a' that unconditionally matches anything.

-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160107/94e569f5/attachment.html>


More information about the swift-evolution mailing list