Difference between Scala's existential types and Java's wildcard by example?

前端 未结 5 1027
傲寒
傲寒 2020-12-08 10:20

A bit more specific than Stack Overflow question What is an existential type?, what is the difference between Scala\'s existential types and Java\'s wi

5条回答
  •  悲&欢浪女
    2020-12-08 10:32

    The List[_] notation (which as other answers point out is a more powerful analog to Java's List[?]) is a degenerate case of the more general notion of an existential type in Scala.

提交回复
热议问题