Colton Idle
08/14/2025, 12:45 PMCLOVIS
08/14/2025, 12:52 PMColton Idle
08/14/2025, 12:56 PMColton Idle
08/14/2025, 12:56 PMRiccardo Lippolis
08/14/2025, 1:04 PMMarkRS
08/14/2025, 1:26 PMRiccardo Lippolis
08/14/2025, 1:29 PMCLOVIS
08/14/2025, 1:29 PMCLOVIS
08/14/2025, 1:31 PMdata class
when we want equals & hashCode, but equals and hashCode are broken for mutable classes, so mutable data class
is in general a bad idea (but it's still allowed in case you really do know what you're doing)
For more reading, see Effective Java by Joshua Blosch, items 10–12 (they apply to Kotlin too)AndreyVanDenHaag
08/14/2025, 1:44 PMMarkRS
08/14/2025, 1:57 PMColton Idle
08/14/2025, 2:59 PM