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

You and me both. Java programmers don't seem to want it for some reason.

However, Java has instead received `Optional` (in the shape of `Optional.ofNullable(variable).map(Clazz::getProperty).map(Clazz2::getProperty).orElseGet( () -> 42 );` rather than `variable?.getProperty()?.getProperty() ?: 42`).

I don't know what the JCP EC was thinking going for this approach rather than the much more readable, modern approach, but I can't be too surprised about a language designed by committee refusing such improvements.



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

Search: