How to hide copy method of data class?

The copy method will breaks binary compatiblity.

Do you mean it breaks compatibility if we add a new property? What about the constructor - it has the same problem. I guess we can always add a copy function manually if we add new props.

1 Like