[swift-evolution] Proposal: Allow Getters and Setters to Throw
brent at architechies.com
Tue Dec 8 18:59:55 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.)
You’re right—I wasn’t thinking of subscripts.
More information about the swift-evolution