6 ms·
I sense a connection, for example, between Rust's `fn foo<T>() -> Result<T, E>` and Java's `void foo<T, E>() throws E` (this might be incorrect Java syntax). I'
by chcokr 12y ago
I sense a connection, for example, between Rust's `fn foo<T>() -> Result<T, E>` and Java's `void foo<T, E>() throws E` (this might be incorrect Java syntax). I'm not entirely confident though.
- barosl 12y agoI find Java's checked exception similar to Option type, because they are all part of the function's type. You cannot pass alone without checking the possible failure case.