[swift-evolution] Proposal: Allow Getters and Setters to Throw

Jordan Rose jordan_rose at apple.com
Tue Dec 8 18:28:14 CST 2015


>> Is there a "rethrows" equivalent?
> 
> I don’t think so. What would it be rethrowing an error from? The value if it happened to be a closure? That seems a bit esoteric.


This isn't particularly interesting for a property, but may be useful for a subscript that took a closure as an index. (I personally wouldn't like such an API, but think of something like XPath <https://msdn.microsoft.com/en-us/library/ms256086(v=vs.110).aspx>.)

Jordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151208/edefb06a/attachment.html>


More information about the swift-evolution mailing list