4 ms·
I don't necessarily agree with this. Scala gives you the ability to write in an OO style - which can result it some funky looking hybrid code. But if you are d
by OhHeyItsE 13y ago
I don't necessarily agree with this.
Scala gives you the ability to write in an OO style - which can result it some funky looking hybrid code. But if you are disciplined, you can write perfectly pure, functional Scala.
- pdpi 13y agoSorry, maybe I missed something, but what, exactly, don't you necessarily agree with?
- roflc0ptic 13y agoI think he was disagreeing with the quote but maybe attributing it to you.
- pdpi 13y agoHuh, didn't even consider that possibility.
- Guvante 13y agoI believe the difference between Haskell and Scala can be described with the pit of success design paradigm. Haskell is lazy and always pure, so writing hybrid code takes great effort. This improves code quality by making the path of least effort the best one. Whether writing pure functional code is the goal is an interesting debate, but Haskell is certainly the better language to learn that in.
- ademarre 13y ago> if you are disciplined, you can write perfectly pure, functional Scala That's a key point right there. If you are an OOP guy trying to learn FP, Scala makes it too easy to stick to what you already know. I find that Scala's OO features get in the way of learning functional programming, because like you said, it requires discipline to do things in a functional way. With Haskell, you don't have a choice.