PROPOSAL: Static Methods in Interfaces (v1.1)

Marek Kozieł develop4lasu at gmail.com
Tue Mar 17 22:57:28 PDT 2009


W dniu 18 marca 2009 06:35 użytkownik Neal Gafter <neal at gafter.com> napisał:

> On Tue, Mar 17, 2009 at 10:33 PM, Marek Kozieł <develop4lasu at gmail.com>
> wrote:
> > @Neal Gafter
> >
> > Extension Methods can be problem while inheritance.
>
> Can you please be more specific?
>

It's good solution at start.

Bad sites:
1. You need know where the methods are and then you can use it.

2. What happen if some one write same method in inherited class and you will
want use extended one?

3. What happen if there will be two extension with same methods:
Extension1{
   void method1(...){...}
   void method2(...){...}
}

Extension2{
   void method1(...){...}
   void method2(...){...}
}

… and u want call Extension1.method1 and Extension2.method2

3. It's not clear if method is extension or it's in class for the one who
read the code.

I see it MS way solution: good for short projects.

-- 
Pozdrowionka. / Regards.
Lasu aka Marek Kozieł

http://lasu2string.blogspot.com/



More information about the coin-dev mailing list