Re:How to make any immutable data structure distributed
by pmapcat on Monday December 06, 2021 @06:21AM
(#29458359)
That is the use case that we have to work with quite often.
In the end, we use something along the lines of
which pattern matches on some `object` (map) and does processing. We find it less fragile than specifying explicit path to an element. It can also work in a polymorphic fashion. On the other hand, there is a risk of a false positive (when you modify address that you shouldn't). But you can mitigate that risk by using additional checks (in case of a customer, you can check for additional set of fields that are specific for that object(map)
edit:formatting
[ Parent
| on HN ]
There are no comments on this comment yet.