Kotlin / Kotlin/api-guidelines

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

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
154
Forks
25
Avg merge
19d 1h
Merged PRs (30d)
1

Description

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"

Contributor guide

Open the contributing guide

Research direction

Start with the issue's arguments about mutability, covariance, and compile-time safety, then review the existing guidance around “avoid varargs.” Determine whether preferring lists over arrays belongs in the API guidelines or in something like Effective Kotlin; done means a decided placement and documented recommendation.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
backend-api-design, documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.