Hey folks. Has someone considered the use case of ...
# arrow
a
Hey folks. Has someone considered the use case of using optics together with
private constructor
and
@ConsistentCopyVisibility?
There are cases where
copy
should only be available to other methods of the class and therefore be private, e.g. when modelling state changes that require $otherThings to happen before
copy
can be safely called.
y
Hmmmm. I struggle to see how extension functions generated by KSP would be able to access the
private
copy method or anything like that.
a
Yep 🙂