|
|
|
|
|
by vips7L
24 days ago
|
|
Result types do have one problem that checked exceptions don’t. Checked exceptions automatically combine into union types in a throws or catch clause. I haven’t seen a language that lets you be generic like that. T fn() throws E, F, G
vs Result<T, E | F | G> // not even Rust lets you do this.
|
|