mojo
mojo copied to clipboard
[Feature Request] [stdlib] [proposal] Rename `InlineList` to `Array` and `InlinedFixedVector` to `Vector`
Review Mojo's priorities
- [X] I have read the roadmap and priorities and I believe this request falls within the priorities.
What is your request?
What is necessary:
- [ ] rename
/stdlib/src/collections/inline_list.mojo
to/stdlib/src/collections/array.mojo
- [ ] rename
struct InlineList ...
tostruct Array ...
andstruct InlinedFixedVector
tostruct Vector
- [ ] rename all mention in file docstrings
- [ ] rename all mention in docs
What is your motivation for this change?
Array and Vector are names and structures that are known by many programmers from other languages, simpler to understand than saying:
- inlinefixedvector
- inlinelist
This way we will have 3 easy to teach list-like types:
-
Array
An Array allocated on the stack with a maximum size known at compile time. -
List
A dynamically-allocated list. -
Vector
A dynamically-allocated vector with small-vector optimization and a fixed maximum capacity.
Any other details?
No response