Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The big difference is that Optional has ergonomic features like .map(), .ifPresent(), .orElse(), that reduce the verbosity of repeated if blocks checking if values are present or not.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: