Hacker News new | ask | show | jobs
by nollidge 4839 days ago
Since Java doesn't have pass-by-ref, this would probably be just as awkward as try-catch.
1 comments

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.