Convert simple classes that mainly just store data to records #315
Labels
technical debt
Things that would make the code cleaner but deliver little to no value to users.
Milestone
What needs to be cleaned up?
There are a lot of simple classes that mainly just store some data and don't have much in the way of references to other classes that need to maintain referential integrity. Convert them to data classes. Umm, I mean, records, this is not Kotlin!
How will this benefit us?
Records are supposed to have better performance than classes I think? And the syntax is simpler since properties can be converted to constructor parameters and equals/hashcode/etc are auto-implemented.
What potential drawbacks are there to making this change?
Just the time consumed doing it and any potential bugs introduced. Also records are immutable so that could be a problem.
The text was updated successfully, but these errors were encountered: