private[this] case class LocalConfig(beAwesome: Boolean)
private[this] val localConfig = config.get { conf =>
LocalConfig(conf.getBoolean("beAwesome"))
}
why is LocalConfig a case class? I think it should be a singleton. I don't see situations when we're going to reuse that class (reusing that case class is probably a mistake).
I think we should use object instead of case class for config as best practice.
Configs are currently written as:
why is LocalConfig a case class? I think it should be a singleton. I don't see situations when we're going to reuse that class (reusing that case class is probably a mistake). I think we should use
object
instead ofcase class
for config as best practice.the only problem I see is that it gets kind of cumbersome for more variables
vs