On Oct 11, 12:31 am, "Fabrizio Giudici" <[email protected]> wrote: > Can somebody please explain me whether is it possible to have covariant > generics *without* all the corner cases that are often bashed in Java?
Yes, it is possible. See C#. It has "declaration site" variance. In C# you put "out" on the type parameter in your interface instead of Java's "? extends" where your interface is used. -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
