Swift has always let you throw, but not say what you throw. Typed throws change ...

@twostraws@mastodon.social

Swift has always let you throw, but not say what you throw. Typed throws change that - write throws(NetworkError) and callers know exactly what they're dealing with. hackingwithswift.com/swift/6.0