|
|
|
|
|
by arghwhat
3008 days ago
|
|
Oh, and added thing that bugged me a lot: The error part of Result<T, E>. During my short time of coding Rust (I'll get back to it later), I never really found a way to ergonomically handle errors. I find it really awkward that the error is a concrete type, making it so that you must convert all errors to "rethrow". Go's error interface, and even exception inheritance seems to have lower friction than this. |
|
If you don't like that, you can do something like this:
But then you'd have to box every error.