Re:Everything about Java 8
by nollidge on Wednesday March 27, 2013 @01:21PM
(#5450688)
Since Java doesn't have pass-by-ref, this would probably be just as awkward as try-catch.
[ Parent
| on HN ]
Re:Everything about Java 8
by suppressingfire on Friday March 29, 2013 @10:27AM
(#5460879)
Guava's Hints.tryParse is about as good as it can get in Java... Maybe it could return an Optional instead of a nullable boxed type, but the calling code wouldn't be much different.