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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -