Seconded. What's left _out_ of a language is as interesting as what made
it. I'd like to know the reasoning behind the exclusion of wildcards and
also, when designing in Scala from scratch (i.e., not trying to
interoperate with Java code) how one should handle a situation that in
Java would call for the use of wilcards. Perhaps this was discussed
elsewhere already?
Regards,
-- O.L.
Miles Sabin wrote:
Nikolay Mihaylov wrote,
The problem is how to represent Java's wildcard types in Scala's type
system. This simply cannot be done in some cases. Martin Odersky was
playing with wildcard types for Scala that would have solved the
representation problem but they turned out to be a can of worms.
That surprises me a little ... what were/are the problems?