State of the Lambda
john.r.rose at oracle.com
Thu Jul 8 14:53:23 PDT 2010
On Jul 8, 2010, at 2:37 PM, Brian Goetz wrote:
> My intention for method refs for non-static methods is that the receiver reference is evaluated and copied (likely as part of the method handle binding); this is a binding of a method handle with a specific receiver, not syntactic sugar for "whatever the receiver happens to be at the time the lambda is invoked, call it."
Right; partial application must not be confused with making a closure. (Since they are two distinct ideas!)
That's why I sympathize with Josh's qualms about the lambda-like syntax #foo.bar and prefer foo#bar, foo.#bar, foo.&bar or some other infix syntax.
More information about the lambda-dev