mojo icon indicating copy to clipboard operation
mojo copied to clipboard

[Feature Request] [stdlib] [proposal] Rename `InlineList` to `Array` and `InlinedFixedVector` to `Vector`

Open martinvuyk opened this issue 9 months ago • 1 comments

Review Mojo's priorities

What is your request?

What is necessary:

  • [ ] rename /stdlib/src/collections/inline_list.mojo to /stdlib/src/collections/array.mojo
  • [ ] rename struct InlineList ... to struct Array ... and struct InlinedFixedVector to struct 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

martinvuyk avatar May 21 '24 15:05 martinvuyk