Curious about static method references

Paulo Levi i30817 at gmail.com
Thu Jun 28 16:15:27 PDT 2012


Hi lambda designers.


The state of the lambda seems to imply that lambdas are going to be pure
call-site constructs:
"Contexts for target typing

We stated earlier that lambda expressions can only appear in contexts that
have target types. So, what contexts have target types?

   - Variable declarations
   - Assignments
   - Return statements
   - Array initializers
   - Method or constructor arguments
   - Lambda expression bodies
   - Conditional expressions ?:
   - Cast expressions"

And that the function argument where you'd like to use a lambda itself will
need to accept a 'functional interface'

However, interfaces can't have static methods...

What gives?


More information about the lambda-dev mailing list