Configuration data in Scala — should I use the Reader monad?
Let’s start with a simple, superficial difference between your approach and the Reader approach, which is that you no longer need to hang onto config anywhere at all. Let’s say you define the following vaguely clever type synonym: type Configured[A] = ConfigSource => A Now, if I ever need a ConfigSource for some function, say … Read more