Open MateuszKubuszok opened 5 months ago
Once #115 is implemented, patching could become just a special case of patch.into[Obj].withFallbackValue(obj).transform:
patch.into[Obj].withFallbackValue(obj).transform
Patcher[Obj, Patch]
Option
This rewrite would allow Patchers to use every feature that Transformers have just by adapting the PatchingContext into TransformationContext.
Patcher
Transformer
PatchingContext
TransformationContext
While its possible to implement many existing feature requests with the current Patcher implementation, such additions would quite possible duplicate the implementation for Transformers and be scheduled for deletion from the start.
Once #115 is implemented, patching could become just a special case of
patch.into[Obj].withFallbackValue(obj).transform
:Patcher[Obj, Patch]
Option
rulesThis rewrite would allow
Patcher
s to use every feature thatTransformer
s have just by adapting thePatchingContext
intoTransformationContext
.While its possible to implement many existing feature requests with the current
Patcher
implementation, such additions would quite possible duplicate the implementation forTransformer
s and be scheduled for deletion from the start.