2 ms·
Even FP needs some mutability when it comes to databases and user input. let's consider a website you would need io -> handler -> database so the io and the da
by merb 11y ago
Even FP needs some mutability when it comes to databases and user input.
let's consider a website you would need io -> handler -> database so the io and the database is a mutable connection between the handler that by itself could be fully mutable.
Mostly I think most problems of OOP and FP are solved by Reactive Streams since they encourage small units and each unit could be either programmed with OOP or with a Functional Style.
This solves a lot of things.
Btw. I'm mostly writing Scala and I love it, still I use some Objects or sometimes use Java. Golang or other stuff. It mostly depends what I'm doing.