News for hackers. Stuff that matters.
Re:Migrating from Go to Rust by IshKebab on Monday May 25, 2026 @04:15AM (#48264603)
He was talking about the chain of function calls not crates. You still have that in your top level crate.
Re:Migrating from Go to Rust by wtetzner on Monday May 25, 2026 @04:49PM (#48271516)
Except anyhow is compatible in that direction. io::Error and thiserror types will automatically convert to anyhow errors.
Re:Migrating from Go to Rust by IshKebab on Tuesday May 26, 2026 @04:57AM (#48277021)
In my experience it's not quite as automatic as you'd hope. I always often to throw in stuff like `.map_err(Into::into)` or `Ok(foo?)` to convert the errors.

Not the end of the world but I do think defending the proliferation of error types in typical Rust projects is copium.

Re:Migrating from Go to Rust by wtetzner on Tuesday May 26, 2026 @05:23PM (#48286156)
Yes, `?` automatically does `.into()`.

There are plenty of reasons you can complain about Rust's error handling, but "proliferation of error types" feels like a misunderstanding of how Rust error handling works in the first place.