Closed ArnyminerZ closed 3 months ago
Making ical4android and vcard4android data classes immutable is a good idea and on the plan for "somewhen" ;) But I think it's enough for now if they become data classes with var
without further changes. However using data classes allows us to get rid of the reflection toString
calls.
@rfc2822 I've turned
Contact
into a data class for thetoString
method, but now that it's a data class, do we want to keep using vars, or maybe it's better to use thecopy
method? I don't know how many replacements that would be. In that sense, if we make all variables inmutable, we should also make the lists non-mutable as well, so I don't know if we would want that now.