Existential types were added to Scala for compatibility with Java wildcards. An existential type is a type expression followed by forSome { ... }, where the braces contain type and val declarations. For example,
Array[T] forSome { type T <: JComponent }
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.