[swift-evolution] Why does URL.checkResourceIsReachable() return a Bool?

Charles Srstka cocoadev at charlessoft.com
Sun Aug 7 15:42:13 CDT 2016


> On Aug 7, 2016, at 2:33 PM, Jacob Bandes-Storch <jtbandes at gmail.com> wrote:
> 
> extension URL {
>     enum Reachability {
>         case reachable
>         case notReachable(ErrorProtocol)
>     }
>     func reachability() -> Reachability
> }

That is excellent.

Charles

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


More information about the swift-evolution mailing list