Extension methods and API evolution

Paul Benedict pbenedict at apache.org
Sat Dec 19 09:39:31 PST 2009


As far as I am concerned, the only sensible use of extension methods
are use-site extensions. If only the author of a class can dictate
which methods can be extended (declaration-site style), the whole idea
is defeated. I wouldn't mind discussing other declaration-site
options, but the current proposal requires wild augmentation to the
interface mechanism that I don't support.

Paul

On Sat, Dec 19, 2009 at 10:47 AM, Peter Levart <peter.levart at gmail.com> wrote:
> On Saturday 19 December 2009 13:58:16 Mikael Grev wrote:
>> On Dec 19, 2009, at 13:46 PM, Stefan Schulz wrote:
>> >  And I am still
>> > unconvinced about the benefit of extension methods, but maybe I missed
>> > the win over static utility methods, except for being able to write
>> > list.sort() instead of sort(list)
>>

Paul


More information about the lambda-dev mailing list