Builders are hard to maintain when adding a new config.
I know this would involve an API change, so I am putting it as an open-ended issue, but it might be easier to use a single with(configItem:) function. It could take parameters with nil defaults and use the nil-coalescing operator to keep the unmentioned ones unchanged.
Builders are hard to maintain when adding a new config.
I know this would involve an API change, so I am putting it as an open-ended issue, but it might be easier to use a single
with(configItem:)function. It could take parameters withnildefaults and use the nil-coalescing operator to keep the unmentioned ones unchanged.