https://kotlinlang.org logo
m

msfjarvis

11/20/2020, 1:17 PM
data classes generate a copy method as well as numbered componentX methods that break binary compatibility when a new property is added or existing ones are reordered. These reasons make putting data classes in public API a risky move.