Re:Deprecating: java.util.Optional.get()?
by lmm on Thursday April 28, 2016 @02:21PM
(#11590884)
Ok, so I'm advocating forcing users to always use match directly if they want to do that. That helps ensure unsafe code looks unsafe.
[ Parent
| on HN ]
Re:Deprecating: java.util.Optional.get()?
by tatterdemalion on Thursday April 28, 2016 @02:48PM
(#11591071)
Maybe your issue is that the `get` method in Java sounds pretty innocuous, but in Rust the `unwrap` method is notorious. Every Rust user knows that it can panic. Requiring a match would increase verbosity and decrease clarity.