4 ms·
I like Java's exceptions. I've been working in C# and i really miss checked exceptions. Feels like if you use them well they're a great tool, but sadly a lot o
by sfn42 1y ago
I like Java's exceptions. I've been working in C# and i really miss checked exceptions.
Feels like if you use them well they're a great tool, but sadly a lot of devs just don't use the available tools very well.
- lesuorac 1y agoThe 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 :/
- Expurple 1y agoHi, 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-exceptions/#checked-exceptions-in-java https://home.expurple.me/posts/rust-solves-the-issues-with-e...
- lesuorac 1y agoGenerics 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.