api-guidelines
api-guidelines copied to clipboard
[Discuss] Best-practice to prefer lists over arrays in any form
This recommendation is a natural extension over "avoid varargs".
There are enough arguments for that (mutability, covariance, no compile-time safety). The question is whether it is applicable enough to be included into API guidelines or should be a part of something like "Effective Kotlin instead"
Is it what you're talking about? https://kotlinlang.org/docs/jvm-api-guidelines-predictability.html#avoid-arrays-in-public-signatures