capturing (or not) mutable local variables
forax at univ-mlv.fr
Fri Dec 3 17:45:07 PST 2010
On 12/04/2010 02:27 AM, Llewellyn Falco wrote:
> So, I just recorded a small video about unit testing in which I used a
> lambda find an empty space on a tic tac toe board.
> The point is, the board was final, but not immutable. Most of this
> discussion could be reduced to:
> final = immutable = safe for multithreads
> but the simple fact is
> final != immutable
> and most of this discussion has been badly founded.
As far as I remember it was more:
!final => !immutable
More information about the lambda-dev