functional programming - How to deal with global, mutable configuration variables (or files) in FP? -
in complex program, in trying apply functional programming patterns whenever can, 1 problem many config files loaded , become global variables accessible everywhere in program. approach leads entanglement. how should handle config files in functional programming style?
modelling configuration variables function seems reasonable me. inferes function impure , dependant on state, namely config file.
Comments
Post a Comment