Are there alternatives to using the spread (`*`) o...
# detekt
j
Are there alternatives to using the spread (
*
) operator when dynamically building a list to call a varargs method with? or is the detekt
SpreadOperator
rule just there to make sure there's awareness of the performance implications of doing so?
s
Note that there is still some benchmarking going on. https://github.com/arturbosch/detekt/issues/554 As long as the performance impact is not fixed this will stay open
t
I still believe that it is mostly for awareness reasons.
It allocates another array to be able to do spread operator.
204 Views