Kotlin / Kotlin/api-guidelines
[Discuss] Best-practice to prefer lists over arrays in any form
- 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
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