2 ms·
internally message passing, futures and actors are all about state. especially in erlang and scala. the libraries just wrapping that state so you don't need to
by merb 11y ago
internally message passing, futures and actors are all about state.
especially in erlang and scala. the libraries just wrapping that state so you don't need to care about.
also there is always state. look at the io front there your application needs to deal with state, if you are using fp your program maybe doesn't contain state. but the public api mostly deals with it.
- eru 11y agoFunctional programming is about carefully managing your state. Ideally, you want to separate the pieces with the complicated logic, from the pieces that do the state persisting. Then each piece can do one thing and do it well. There are lots of useful stateless services. But that's the nirvana, and not possible with all things you might want to offer.