[swift-evolution] Proposal: Allow Getters and Setters to Throw
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>.)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution