4 ms·
As a library writer, almost always you can’t decide whether your user can recover or not. So checked exceptions for libraries would be used very rarely. They mi
by vbezhenar 6y ago
As a library writer, almost always you can’t decide whether your user can recover or not. So checked exceptions for libraries would be used very rarely. They might be useful for application code. But they were abused for Java standard library and now most people hate them. At this point I would rather see them gone. If I would want to force API user to handle result, probably I would just use something like Optional.
- srtjstjsj 6y agoPeople hate them because they want to quickly write unreliable software but are using a language designed for building reliable software
- vbezhenar 6y agoJava is positioned and used as a general-purpose programming language. I don't think that it was specifically designed for building etra-reliable software.