News for hackers. Stuff that matters.
Re:PartiQL: One query language for all your data by paulddraper on Thursday August 01, 2019 @08:39PM (#20589772)
No, the point of lambdas is you didn't have to write the full class syntax.

Like in other OO languages, every value in Java is an object [1], and every object has a class.

[1] Except for the 8 primitive types.

Re:PartiQL: One query language for all your data by pvg on Thursday August 01, 2019 @08:50PM (#20589820)
I didn't say that was 'the point of lambdas'. But the lambdas implementation, as far as I know, doesn't make new classes. It's not syntactic sugar around anon/inner classes.
Re:PartiQL: One query language for all your data by paulddraper on Thursday August 01, 2019 @09:33PM (#20590035)
You're right that it's not represented as a class in byte code.

At runtime, LambdaMetafactory creates function objects that implement the require interfaces.

The objects are instances of java.lang.Object, including returning a value for getClass() that is the same as for any other other lambda objects created from same expression.

Not compile time classes, but runtime instances of classes.

Uses different machinery with keeping compatibility.