3 ms·
I think there's a nice middle ground. For instance, in Swift a function can indicate that it throws, which is better than nothing. func canThrowErrors() th
by kinjba11 5y ago
I think there's a nice middle ground. For instance, in Swift a function can indicate that it throws, which is better than nothing.
func canThrowErrors() throws -> String
func cannotThrowErrors() -> String