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

While the `Optional` API is generally pretty inconvenient (compared e.g. to Kotlin), it does offer the more precise `ifPresent`.




Java lambdas are terrible so I usually avoid them. There's no reason to invent new methods, when language already has corresponding statements.



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

Search: