Effectively final effective?

Paulo Levi i30817 at gmail.com
Wed Feb 24 20:40:10 PST 2010


Isn't final just a security measure for concurrency here?

I think Neal had the right idea in the closures proposal to use different
syntax, so a api that is expected to run in another thread doesn't have to
worry if their users are careful enough to copy the variables and not expect
to use the updated values. Something like
void m( ##(int, int) m2){...}

Never bothered about final myself, especially with all the possible
workarounds
ParentClass.this.var, arrays, return functors etc)


More information about the lambda-dev mailing list