3 ms·
I recently started working in a Kotlin project coming from a Java background. I wrote a Builder for a data class I needed to add stuff in a loop. Reviewer sug
by JaDogg 3y ago
I recently started working in a Kotlin project coming from a Java background.
I wrote a Builder for a data class I needed to add stuff in a loop.
Reviewer suggested I use `copy()` instead. Once I used that I was happy, I didn't need that Builder after all. I removed bunch of useless lines of code, made things simpler. Loved it!