posted 2 years ago
FP, just like Data-Oriented Programming, focuses on data and its transformations. In FP, data is immutable, so your functions become easier to comprehend—they just take inputs and return outputs, and no other changes are possible. This in turn allows you to model your domain more naturally because you are not constrained to objects that encapsulate some internal state and expose behaviors.