Re:Overhead of Returning Optional Values in Java and Rust
by WmyEE0UsWAwC2i on Saturday October 16, 2021 @04:15PM
(#28891071)
I don't think that's the best way to use Optional in java. In particular the use of isPresent & get kind of defeats the purpose. Should be something along the lines :
Also maybe use something like OptionalInt (but for long).
[ Parent
| on HN ]
There are no comments on this comment yet.