capturing (or not) mutable local variables
Llewellyn Falco
isidore at setgame.com
Fri Dec 3 17:27:02 PST 2010
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.
http://youtu.be/f4do_d4yui0
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.
More information about the lambda-dev
mailing list