api-guidelines icon indicating copy to clipboard operation
api-guidelines copied to clipboard

[Discuss] Best-practice to prefer lists over arrays in any form

Open qwwdfsad opened this issue 1 year ago • 1 comments

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"

qwwdfsad avatar Apr 11 '23 13:04 qwwdfsad

Is it what you're talking about? https://kotlinlang.org/docs/jvm-api-guidelines-predictability.html#avoid-arrays-in-public-signatures

asm0dey avatar May 04 '23 12:05 asm0dey