Can extension methods be overriden?
Mark Thornton
mthornton at optrak.co.uk
Mon Dec 14 08:23:00 PST 2009
Stephen Colebourne wrote:
> 2009/12/14 Paulo Levi <i30817 at gmail.com>:
>
>> When i thought about this a while ago it seemed obvious that extension
>> methods would be methods that didn't depend on any non-public methods or any
>> state (since they are to be used in interfaces).
>>
>
> I'd like it to be a goal to permit a class to "implement" an extension
> method more efficiently than the default implementation. However, I
> haven't considered how this could be achieved or even if its possible.
>
I think that takes it into the realm of traits, which is possible but
probably out of scope.
> Stephen
>
> PS. This is a resend, as for the umpteenth time I replied to the
> person rather than the list. My Christmas wish is OpenJDK mailing
> lists that have reply-to back to the list!!!
>
>
I second that (though on this occasion your first message also reached
the list).
Mark
More information about the lambda-dev
mailing list