notes/deep_merge_exploration.org

This commit is contained in:
Yann Esposito (Yogsototh) 2022-03-12 11:23:18 +01:00
parent eb30861341
commit d1653adc61
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -28,3 +28,8 @@ As the application becomes more and more complex, the configuration file
also grow in complexity.
At first, this is just a list of properties, but it is frequent to use
json, yaml (dhall if you are in this kind of thing).
And a common usage would be to provide default values for the
configuration.
Instead of putting the default value manually in your code a nice
alternative is to "merge" the user config with a default config.