I'll stick my chin out and say that a constructor with default and named parameters makes builder pattern redundant. Or make a DSL if your domain is too complex for a simple constructor. Builder pattern is an anti-pattern in Kotlin.
💯 6
v
vishesh
11/08/2022, 10:57 AM
Thoughtful
a
Andrew O'Hara
11/08/2022, 1:42 PM
In general, I agree the builder pattern is redundant. However, ktor uses them in an interesting way to enable its DSL-esque structure.