5 ms·
Checked exceptions are great. There is no difference between them and results/unions except syntax. The below all express the same thing. Swift in fact uses the
by vips7L 5mo ago
Checked exceptions are great. There is no difference between them and results/unions except syntax. The below all express the same thing. Swift in fact uses the checked throws syntax.
Result<T,E> fn()
T | E fn()
T fn() throws E
fn() throws(E) -> T