3 ms·
So essentially Java checked exceptions but which also applies to descendants of RuntimeException?
by mort96 7y ago
So essentially Java checked exceptions but which also applies to descendants of RuntimeException?
- Spivak 7y agoYes! Personally I would argue a that this can end up being a little better in practice since errors don't interrupt your program's flow and there's not an implicit `if err jump` attached to every line but I suppose that's stylistic preference.
- heavenlyblue 7y agoIt’s all nice and easy, but how would you handle OOMs in that scenario? Or the cases with Rust’s assertions which kill the program? The chance you’d need to rebuild a huge amount of software for that.