On Wednesday, 21 October 2015 at 15:18:08 UTC, Ice Cream Man
wrote:
On Wednesday, 21 October 2015 at 14:06:43 UTC, Jonathan M Davis
wrote:
[...]
I've found immutable containers useful when working with
configuration files. There are only a few places in a program
where you want to actively change values in a configuration
files (configure the values). For these instances it's useful
for the GUI or whatever to grab a mutable container to work
with. For all other areas, immutable containers are very
helpful in ensuring nobody accidentally modifies something they
shouldn't be outside of the provided sandboxes.
Actually, I think functional containers are probably more often
than not the right tool for whatever it is you are doing. They
just aren't convenient, because you might have to rethinking the
architecture.