[swift-evolution] [Draft] Abolish IUO type

Jed Lewison jed.lewison at icloud.com
Thu Mar 17 21:26:54 CDT 2016


> On Mar 17, 2016, at 8:50 PM, Brent Royal-Gordon via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 	@autounwrapped let foo = functionReturningOptional()
> 
> I *believe* that, without the `@autounwrapped` attribute, there's no way to go from T? to T! without actually restating T somewhere.


I think you could express this as:

	let foo = functionReturningOptional()!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160317/8e38b272/attachment.html>


More information about the swift-evolution mailing list