4 ms·
I am interested in the uses. I remember reading Functional Programming (FP) leads to more readable code, fewer lines and financial companies use them for some
by 1_listerine_pls 10y ago
I am interested in the uses.
I remember reading Functional Programming (FP) leads to more readable code, fewer lines and financial companies use them for some reason. I assume it must be because FP programs guarantee the certainty of their results, but I am not sure. Are there side effects in FP languages?
- agumonkey 10y agoml languages (sml, ocaml) support side effects through mutable references, and sequences in case you need it. Haskell aims for purity so you encode side effects as threaded state variables through functions (State and IO monad); other kind of side effects possible with this pattern too (Continuations, ...).