Skip to content

refactor(value): migrate Array storage abstraction - #785

Merged
Anand Krishnamoorthi (anakrish) merged 2 commits into
microsoft:mainfrom
anakrish:array-abstraction-migration
Aug 14, 2026
Merged

refactor(value): migrate Array storage abstraction#785
Anand Krishnamoorthi (anakrish) merged 2 commits into
microsoft:mainfrom
anakrish:array-abstraction-migration

Conversation

@anakrish

Copy link
Copy Markdown
Collaborator

Summary

  • Introduce the opaque Array storage abstraction for Value::Array.
  • Migrate array construction, iteration, serialization, indexing, and mutation call sites.
  • Remove slice deref leakage and use explicit Array APIs, consistent with upstream Object and Set abstractions.

This supersedes the earlier array abstraction implementation in PR #65.

Validation

  • cargo check --all-features
  • cargo check --lib --no-default-features
  • cargo test --lib
  • formatting and clippy checks, including bindings

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

docs(value): document Array storage abstraction

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9ac07e53-88fc-4050-bd56-c0d9761b911b
Wire Value::Array to the opaque Array wrapper and update all call sites to use explicit APIs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9ac07e53-88fc-4050-bd56-c0d9761b911b
@anakrish
Anand Krishnamoorthi (anakrish) merged commit 3cff6c5 into microsoft:main Aug 14, 2026
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants