DEV Community

[Comment from a deleted post]
Collapse
 
ope profile image
Ope Adeyomoye

Thanks Jonathan,

Immutable configurations are a popular solution too. But in this case, I needed a way to allow the global configuration change if need be, but it had to absolutely deliberate; not via "side-effects".

You usually can't have that with totally immutable objects; they tend to stay unchanged.