top | item 28916554 (no title) mishafb | 4 years ago The lambdas aren't actually lambdas, they are anonymous classes with a single metthod according to the type-inferred interface, and they can't use variables that aren't effectively final. discuss order hn newest gpderetta|4 years ago That's just a way to make them work in the existing ecosystem (in C++ lambdas for example are just function objects with overloaded operator()).The final is to avoid some mistakes, but they are still effectively closures.
gpderetta|4 years ago That's just a way to make them work in the existing ecosystem (in C++ lambdas for example are just function objects with overloaded operator()).The final is to avoid some mistakes, but they are still effectively closures.
gpderetta|4 years ago
The final is to avoid some mistakes, but they are still effectively closures.