You can still use a factory method in case you nee...
# announcements
p
You can still use a factory method in case you need validation. Letting the data class validate it's content makes sense. Like EmailAddress.parse and then make the constructor private. @ursus
w
I think the point is that constructor is still exposed by
copy
method:
image.png