Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Effective Rust. Parent comment
Java doesn't make it nice to deal with exceptions though. Converting a checked exception into an unchecked exception is incredibly wordy:
int output; try { output = doSomething(); } catch (IOException io) { throw new RuntimeException(io); }
let output = doSomething().unwrap()
There are no comments on this comment yet.
Java doesn't make it nice to deal with exceptions though. Converting a checked exception into an unchecked exception is incredibly wordy:
vs Rust's method of defaulting an error result to a panic: https://doc.rust-lang.org/std/result/