do D support something like C# 4.0 co/contra-variance?

Bienlein ffm2202 at web.de
Mon Mar 11 08:16:46 UTC 2019


On Friday, 15 October 2010 at 12:49:33 UTC, Sean Reque wrote:
> Java doesn't have variant generic type parameters. Wildcard 
> types in Java are NOT the same thing and are certainly not more 
> powerful.

Yes, and it is seen as a nuisance in the Java world. Newer JVM 
languages such as Kotlin and Scala do not suffer from this 
problem.



More information about the Digitalmars-d mailing list