why context for lambda method is Immutable context?
Closed this issue · 1 comments
chennbnbnb commented
related code:
method-handles.dl
i found lambda method's context always be immutable context, I wonder why? and i think it's better to let lambda method be context-sensitive.
gfour commented
Lambdas are very common and this analysis path is always on, thus it tries to avoid performance overheads such as those introduced by context sensitivity. The comment in the clause you link suggests a possible model of context sensitivity for lambda method handles but it was not implemented.