Kotlin / api-guidelines

Best practices to consider when writing an API for your library

Home Page:https://kotl.in/api-guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

qwwdfsad opened this issue · 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"