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.
(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#.