News for hackers. Stuff that matters.
Re:Why Use Structured Errors in Rust Applications? by lesuorac on Sunday June 01, 2025 @04:18PM (#44153502)
The problem with checked exceptions in Java is that pretty much every language feature added since then has assumed unchecked exceptions (use an IO operation in a stream). So they start to stick out in a lot of places :/
Re:Why Use Structured Errors in Rust Applications? by Expurple on Tuesday June 03, 2025 @09:47AM (#44170105)
Hi, I'm the author of the article. As I've learned when discussing my older article about exceptions, the real problem is that methods can't have an unknown, generic, composable set of checked exceptions!

https://home.expurple.me/posts/rust-solves-the-issues-with-e...

Re:Why Use Structured Errors in Rust Applications? by lesuorac on Tuesday June 03, 2025 @10:40AM (#44170648)
Generics were added later than checked exceptions.

You're just providing more examples of my argument that new language features are not made with checked exceptions in mind.