3 ms·
Not true. It's not first class. You can't pass a static class method to a method and then call it. You have to instantiate a Function instance or equivalent.
by gowld 5y ago
Not true. It's not first class. You can't pass a static class method to a method and then call it. You have to instantiate a Function instance or equivalent.
- IshKebab 5y agoOk but that's a separate weird limitation that only applies to Java. You can pass static methods as parameters in at least C++, Python and Javascript.
- UncleMeat 5y agoThat is orthogonal. Java could easily have free standing functions that are still not first class.
- native_samples 5y agoThat's not actually true. You can use method handles to do that.