Hello, I'm playing a bit with the 'Component' library. The system has some initial configuration (port numbers, uri's, usernames,...) in code.
I'm doubting to eighter pass configuration when constructing the system:
(C/system-map
:mycomponent (map->MyComponent {:conf ...})
OR to pass configuration itself as a component
(defrecord Config ...)
(C/system-map
:config ...
:mycomponent
(C/using (map->MyComponent ...) [:config])
Is there any reason why to prefer one way over the other or is it just personal preference?
kind regards,
Dieter