|
|
|
|
|
by premium-concern
3659 days ago
|
|
Scala's typeclasses are first-class values and they actually work as advertised. Haskell's type classes are a mess because Haskell-the-spec (anti-modular, coherent) and Haskell-the-language (incoherent, "modular") work completely different and nobody cares and there us no real fix because both options suck, as soon as your project consists of more than one module. It's the reason why no language after Haskell does type classes the Haskell way, and all of them do it similar to Scala's approach. Could Scala have more syntax sugar? Sure! But people are more focused on getting them right first, before adding additional syntax. |
|