News for hackers. Stuff that matters.
Re:What Happens to OO When Processors Are Free? (2015) by lomnakkus on Sunday January 15, 2017 @05:35PM (#13406781)
I guess it depends heavily on what you define as an "OO language", but e.g. Scala has pretty decent support for Sum and Product types + pattern matching.

(If you don't do lenses or similar, it's still pretty tedious to deal with "deep updates", but that's coincidental. Lenses do solve this problem, although they're awful in practice in Scala.)

Totally agree if you're talking about e.g. Java or Python or even C#.

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.