2 ms·
I think that fundamentally OOP and FP are both necessary for any language that wants to run relatively close to the metal. The reason is that a computer is fun
by adamnemecek 10y ago
I think that fundamentally OOP and FP are both necessary for any language that wants to run relatively close to the metal.
The reason is that a computer is fundamentally all about state and you need something to manage the that state. This is the antithesis of FP. OOP manages state somewhat nicer.
- lotyrin 10y agoActors (classes that call with true async messages, potentially over the network) composed of objects (classes that call with simple sync stack) which use pure functions whenever possible. Explicitly handled state + mutations, polymorphism, implicit safe concurrency, fast local calls + opportunities to optimize + safe and easy to reason about.
- adamnemecek 10y agoWe are agreeing right?
- lotyrin 10y agoAbsolutely. I just wanted to put in a mention for actors.