Hacker News new | ask | show | jobs
by cies 1613 days ago
> 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.

1 comments

someObj.someMethod(Some::reference);