Kotlin is a language that not only supports default parameter and named parameter, but also has a good grammar sugar for builder pattern. Which one is your preference?
m
mcpiroman
08/11/2022, 8:41 AM
I prefer kotlin but also I don't think the given example could be much better than it is in python.
j
Jason5lee
08/11/2022, 8:45 AM
I'm asking whether you prefer many named parameters and default parameters, or builder pattern.
m
mcpiroman
08/11/2022, 8:53 AM
Oh ok. So given an even IDE support, I actually don't mind both. Or perhaps with this many of them builders have the advantage of being able to set parameters conditionally.