From d1653adc6160f813e73ba2866ae987fe4e38df5e Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Sat, 12 Mar 2022 11:23:18 +0100 Subject: [PATCH] notes/deep_merge_exploration.org --- notes/deep_merge_exploration.org | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notes/deep_merge_exploration.org b/notes/deep_merge_exploration.org index e0a11147..a236b936 100644 --- a/notes/deep_merge_exploration.org +++ b/notes/deep_merge_exploration.org @@ -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.