4 ms·
But, this isn't you complaining about checked exceptions vs Result. This is you complaining about Java's overall syntax style vs Rust's. Phrased another way, J
by ragnese 2y ago
But, this isn't you complaining about checked exceptions vs Result. This is you complaining about Java's overall syntax style vs Rust's.
Phrased another way, Java's syntax is fairly verbose for everything, not just for try-catching to handle exceptions.
- LelouBil 2y agoI don't know any language that has exceptions and also has no try/catch type syntax. > But, this isn't you complaining about checked exceptions vs Result Yes, I said so exactly > The debate is not really checked exceptions vs Result, it's try/catch vs map_err (and friends) The fundamentals are the same, you are forced to handle/discard/Buble up any error, but in my mind (and I assume a lot of other developers), the word "exception" means try/catch, even though like I said the fundamentals are the same.