Hacker News new | ask | show | jobs
by vips7L 1612 days ago
Java has had method references for almost a decade. Pattern matching also was recently released.
1 comments

> Java has had method references for almost a decade.

So how can I pass a method to another method? (without using lambdas)

> Pattern matching also was recently released.

I know, great improvement (if it comes together with proper sum types). One less reaosn to switch to Kotlin.

someObj.someMethod(Some::reference);