from Hacker News

The Scala Collection API Sucks … Or is it a Work of Beauty?

by fiaz on 12/21/10, 12:02 AM with 1 comments

  • by PaulHoule on 12/21/10, 1:01 AM

    As I struggled with the C# type system, I looked to Scala for answers.

    When I actually tried using Scala, I discovered that type erasure in the JVM broke many of the generics patterns that I was using every day in C#. Also, I discovered that Scala's approach to the static scope doesn't tackle the tough problems addressed by PHP 5.3.

    Then Microsoft added covariant and contravariant polymorphism in C# 4.0, which are the two features that I wanted the most from Scala.