News for hackers. Stuff that matters.
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).
Re:Java 8 lambda syntax decided - same as C# and Scala by spullara on Saturday September 10, 2011 @02:36PM (#2982117)
They are not based on anonymous inner classes (the implementation is likely to be much different) but they have the same restrictions as BDFFL_Xenu described.