DEV Community

Discussion on: Avoiding the Builder Design Pattern in Kotlin

Collapse
 
sake_92 profile image
Sakib Hadžiavdić

I like named parameters, they are convenient and quick to write. IMHO, a more readable approach are so called "withers", like ones from Immutables library. You can type "with" and have autocomplete suggestion for free. :)

Also, there are some problems if you care about binary compatibility when changing case classes in Scala, see here. IDK about Kotlin though.