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

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -