Smarter wrapping logic for long parameter lists
Fixes #274
I think I'll update this PR to cover #291 as well. Any feedback here so far?
I certainly like the results. When do you emit a parameter spec with wrapping=False?
When you've got a parameterized LambdaTypeName as the type of the param:
fun veryLongFunctionName(
veryLongParameterName: (java.io.Serializable, java.lang.Appendable, kotlin.Cloneable) -> kotlin.Unit,
i: kotlin.Int
) = kotlin.Unit
Ah, nice. I think I'd prefer if we flipped the boolean so that it wraps by default and we opt-out only in the lambda special case.
Can do
Fixes #291
Any updates on this request?
@gilgoldzweig we'll most likely go with a solution for #532, which should handle this use-case as well.
Cool, is there any way to make it work now?
There's no workaround unfortunately, but if your function/constructor has more than 2 parameters we'll auto-wrap it.