Swift has always let you throw, but not say what you throw. Typed throws change ...
Paul Hudson @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. https://www.hackingwithswift.com/swift/6.0/typed-throws