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
Youssef Shoaib [MOD]
04/29/2025, 3:08 PM
Hmmmm. I struggle to see how extension functions generated by KSP would be able to access the