Effectively final effective?
Lawrence Kesteloot
lk at teamten.com
Wed Feb 24 17:10:34 PST 2010
On Wed, Feb 24, 2010 at 4:34 PM, Neal Gafter <neal at gafter.com> wrote:
> Scala and C# and Ruby programmers, and programmers in many other
> languages, live without this restriction. Perhaps we should ask them.
> In my experience it is a blessing compared to the Java alternatives.
That's fine, but you're implicitly agreeing that you're okay with my
innocent Math.max() assignment changing the implementation from a
value-copy to a heap-store, along with the potential performance
implications. I believe that's what triggered this thread in the first
place. I think Alex Blewitt was saying that the "final" keyword forces
one implementation over another, and it's therefore a useful
indicator.
Also, the paragraph you responded to was not about writable access to
free variables from lambdas, but about CICE-style effective-final
changes to anonymous inner classes. That's what we have no experience
with.
Lawrence
More information about the lambda-dev
mailing list