Extension methods and API evolution

Mikael Grev grev at miginfocom.com
Sun Dec 20 02:19:14 PST 2009


> Rémi Forax wrote:
>> Le 19/12/2009 21:10, Mikael Grev a écrit :
>>> This works for me as well. As long as there is a way to declare it that's ok.
>>> 
>> 
>> And the compiler is supposed to crawle the workspace (and the universe)
>> to find such annotation ?
> 
> No. Why should it? It's for supporting IDEs to find extension methods 
> and offer them for completion (including the usual auto-import stuff on 
> selection).
> 
> Stefan


Exactly. 

As long as the bridge between the object and methods that operate on it is there I think the problem is solved. If not, there's a problem with learning curve.

This solution also mean that the user of an object type can write their own utility methods which will be picked up by the IDE.

Cheers,
Mikael


More information about the lambda-dev mailing list