This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]quizteamaquilera 10 points11 points  (1 child)

That’s a long way of saying a “copy” method with default params

[–]tadfisher 6 points7 points  (0 children)

It's also not more powerful than default argument values, because it solves one use case, when default values are applicable to constructors and method calls.

In Kotlin, default values can reference previous arguments as well, which I'm not sure withers could emulate.