Migrating our large rust codebase from failure to anyhow/thiserror has been considered a large QoL improvement. I'd recommend investing time into doing the conversion.
-
-
Using std::error::Error is acceptable to me now! It wasn't in the past, but is good now. thiserror is a good choice for elegantly making those errors. anyhow is nice if you have dynamic errors. I don't feel this guidance is in conflict with your sentiment.
-
thiserror looks good enough and doesn't bring lots of side-effects like previous error crates did so I guess it's fine. My issue was mostly about adding more to errors (often more than necessary).
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.