WebAssembly / WebAssembly/WASI

Proposal: add a `fields.keys` method.

Open
#808 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P-http S-inactive
Dominant language
Rust
Stars
5.8k
Forks
333
Avg merge
2d 13h
Merged PRs (30d)
3

Description

Proposal issue for adding a fields.keys method with signature:

keys: func() -> list<field-key>

This is useful for cases where the caller might want to filter which keys to get values for, as opposed to fields.entries which returns value data for every key.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the fields interface and its existing fields.entries operation, then compare their WIT signatures with the proposed keys operation. Done means the fields API exposes keys as a list and supports callers that need to select keys before retrieving values.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.