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

Java has had method references for almost a decade. Pattern matching also was recently released.


> 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);




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

Search: