← Back to context Comment by Graziano_M 12 hours ago I think you're proving the author's point. 9 comments Graziano_M Reply GreenDolphinSys 12 hours ago They're saying that you don't always have to return Result<T, Box<dyn Error>>, you can implement the From<Error> trait on the type and use ? as usual.In other words implementing that trait lets you set a return type like Result<T, CustomAppError> use ? on it. LoganDark 12 hours ago I think they're saying the author's point is that it's more fiddly in Rust (even if there are strong, well-regarded fiddles to use) Graziano_M 12 hours ago Yes, and your other part about the crate.> There's also Zig-style composable errors with yet another library. 2 replies → GreenDolphinSys 11 hours ago I don't think errors are fiddly in rust. They're easy to compose. 1 reply → tcfhgj 12 hours ago how so?
GreenDolphinSys 12 hours ago They're saying that you don't always have to return Result<T, Box<dyn Error>>, you can implement the From<Error> trait on the type and use ? as usual.In other words implementing that trait lets you set a return type like Result<T, CustomAppError> use ? on it. LoganDark 12 hours ago I think they're saying the author's point is that it's more fiddly in Rust (even if there are strong, well-regarded fiddles to use) Graziano_M 12 hours ago Yes, and your other part about the crate.> There's also Zig-style composable errors with yet another library. 2 replies → GreenDolphinSys 11 hours ago I don't think errors are fiddly in rust. They're easy to compose. 1 reply →
LoganDark 12 hours ago I think they're saying the author's point is that it's more fiddly in Rust (even if there are strong, well-regarded fiddles to use) Graziano_M 12 hours ago Yes, and your other part about the crate.> There's also Zig-style composable errors with yet another library. 2 replies → GreenDolphinSys 11 hours ago I don't think errors are fiddly in rust. They're easy to compose. 1 reply →
Graziano_M 12 hours ago Yes, and your other part about the crate.> There's also Zig-style composable errors with yet another library. 2 replies →
GreenDolphinSys 11 hours ago I don't think errors are fiddly in rust. They're easy to compose. 1 reply →
They're saying that you don't always have to return Result<T, Box<dyn Error>>, you can implement the From<Error> trait on the type and use ? as usual.
In other words implementing that trait lets you set a return type like Result<T, CustomAppError> use ? on it.
I think they're saying the author's point is that it's more fiddly in Rust (even if there are strong, well-regarded fiddles to use)
Yes, and your other part about the crate.
> There's also Zig-style composable errors with yet another library.
2 replies →
I don't think errors are fiddly in rust. They're easy to compose.
1 reply →
how so?