Method Pointers

Ben Evans benjamin.john.evans at gmail.com
Sun Mar 25 15:47:34 PDT 2012


On Sun, Mar 25, 2012 at 11:37 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
>> OK, so this is simply an implementation hack, which happens to improve
>> performance, and has the side effect of probably confusing new users,
>> rather than a deliberate, unreliable design feature?
>
> Which is almost identical to something we do in javac -- fold together
> identical string literals within a class into the same constant pool entry,
> resulting in strings appearing to be == accidentally.  We don't do it to
> confuse the users, but it may have that effect anyway.

I think I just got slightly confused by the original discussion. This
does actually
all make sense and I think we're all on the same page here.

I'm probably slightly over-sensitive to users reasoning about the general from
the specific, and this thread just set my spider-sense off.

Ben


More information about the lambda-dev mailing list