3 ms·
Saying that Java has lambdas is vague: it's like confessing one doesn't know what a Lisp lambda implies, in particular creation of closures to capture free var
by jjtheblunt 4y ago
Saying that Java has lambdas is vague:
it's like confessing one doesn't know what a Lisp lambda implies, in particular creation of closures to capture free variables, since Java creates a copy of free variable values, rather than inform the code generator as to allocation of said free variables, in order to honor the closure-extended lifetimes from stack allocation to heap allocation (for example).