News for hackers. Stuff that matters.
Re:What Happens to OO When Processors Are Free? (2015) by willtim on Monday January 16, 2017 @02:17AM (#13408611)
Scala does not have true sum types though, it uses subtyping to encode them. When I tried it, I found that pattern matching was often unsafe. I am glad that Scala has raised awareness of FP, but its implementation of FP is heavily compromised by its focus on OO.
Re:What Happens to OO When Processors Are Free? (2015) by lomnakkus on Monday January 16, 2017 @04:01AM (#13408908)
Scala does have sum types up to generic type erasure; see "sealed trait". (At which point you might want to reevaluate your strategy, so no big loss.)
Re:What Happens to OO When Processors Are Free? (2015) by pkolaczk on Monday January 16, 2017 @04:06AM (#13408925)
Dotty (the next Scala) does have true sum types.