capturing (or not) mutable local variables
Llewellyn Falco
isidore at setgame.com
Sun Nov 21 22:39:48 PST 2010
I also want to point out that there seems to be an assumption that the
consumer of the lambda has ANY idea that creator of the lambda USED a
lambda.
Remember that the signature for someone using a lambda will be like
public <T> List<T> where(Func<T,Comparable> f)
The fact that you created the Func SAM interface with a lambda is not known
to the user of the lambda.
Therefore, the idea that some of the creations might be thread safe, isn't
very useful.
Llewellyn
More information about the lambda-dev
mailing list