13 ms·
They mention at one point that Java doesn't have a way to pass a function as a parameter to another function. That was added in Java 8 with lambdas. That's just
by carterdmorgan 2y ago
They mention at one point that Java doesn't have a way to pass a function as a parameter to another function. That was added in Java 8 with lambdas. That's just one off the top of my head.
- bigdict 2y agoAh ok thanks.
- dehrmann 2y agoNit: it's still right. Lambdas are just functor sugar.
- marcosdumay 2y agoThe only mainstream languages where you can actually pass function references around, without them being sugar for some complex object that the compiler creates are C, C++ and Rust. And it's not trivial to do in Rust.