Re:Java 8 lambda syntax decided - same as C# and Scala
by BDFL_Xenu on Friday September 09, 2011 @10:35AM
(#2978241)
If they will be based on anonymous inner classes, then yes, they'll capture the variables from the surrounding scope. Those variables however will be 'final', which means that you can't re-assign them, even if their values are still liable to side-effects (e.g. setting fields, mutating collections, etc).
[ Parent
| on HN ]