|
|
|
|
|
by kaba0
1416 days ago
|
|
Well, the standard library does have some function types, like Function<A,B>, Supplier<A>, etc. You can just initialize a variable of these types and pass them around. I don’t see how are these not genuine first-class entities. The lambda syntax is also quite pleasant. (Also, behind the scenes they often compile to static functions and called through the invokedynamic instruction) |
|