Wildcard for reused parameters


#1

Hi all,

it would be nice to use wildcards when inside a method we need to reuse all the function parameters. For instance:

fun providesHelper(navigator: Navigator, fragment: Fragment, viewModel: ViewModel) = Helper(navigator, fragment, viewModel)

could be

fun providesHelper(navigator: Navigator, fragment: Fragment, viewModel: ViewModel) = Helper(...)

the dots are used to pass to the constructor all the parameters from the function, to avoid rewriting them.
This code is very common in dagger modules.

Cheers,