Hacker News new | ask | show | jobs
by loglog 205 days ago
While the `Optional` API is generally pretty inconvenient (compared e.g. to Kotlin), it does offer the more precise `ifPresent`.
1 comments

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