4 ms·
Y'know what, I just took a look and I think I would like Rust-style error handling. It reminded me about one thing that I dislike about exception handing in C#
by emorning3 3y ago
Y'know what, I just took a look and I think I would like Rust-style error handling.
It reminded me about one thing that I dislike about exception handing in C#, that methods don't have to declare the exceptions that they throw, unlike Java.
And the thing I disliked about the Java way was declaring exceptions that would be panics in Rust.
I also like that ? Rust operator for propagating errors.
I've done some Erlang and I definitely like Erlang monitors.
Maybe the Rust way combined with monitors would be the ultimate in error handling :-)