Avatar
@swift-5.7.3 func nonThrowing(_ body: @autoclosure () throws -> Void) { try? body() } func rethrowing(_ body: () throws -> Void) rethrows { try body() } func fail() throws { throw NSError(domain: "", code: 0) } func foo() { nonThrowing(try fail()) } func bar() { rethrowing { nonThrowing(try fail()) } }
🙅‍♂️ 1