Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
haddr
on June 20, 2014
|
parent
|
context
|
favorite
| on:
Java Pain
Ad 2: Things evolve. If you stopped somwhere in the mid 90, you won't notice. But in Java 8 you can do null checking easily using Optional. Your example would be: String address = a.map(A::b).map(B::c).map(C::d).orElse("UNKNOWN");
x0x0
on June 20, 2014
[–]
I find that quite wordy, but thank you
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: