Mon Dec 24 21:35:02 EST 2012
Problem with FP
Is that it is too easy to fall into the state trap by just hiding it
in "extended datastructures", i.e. a pure structure "with some
metadata attached", which changes its meaning. Hard to explain..
Basically whay I want to say is that FP design is more about finding
data representations that do not require encoding of exceptional or
intermediate situations, or at least to make them more explicit so
they stand out more.
Maybe what I'm trying to say is that things that are solved in OO
programs by setting a variable, are solved in FP programs by adding
another constructor to create a non-orthogonal concept: "what I would
like it to be + some ugly diff with reality".