Re:Go Replaces Interface{} with 'Any'
by saghm on Wednesday December 15, 2021 @01:37AM
(#29562810)
This is only the case for "checked" exceptions though; the important part about the Result type in Rust is that it won't implicitly propagate errors if you try to just use the success value but instead will give a compiler error. I don't code much Java, but my impression is that standard library methods throwing unchecked exceptions is far more common than panicking, the closest equivalent is in Rust.
[ Parent
| on HN ]
There are no comments on this comment yet.