oracle / oracle/dtrace

Support printing of associative arrays in print()

Open
#109 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
189
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Currently, you can only print individual elements of an associative array. Since there is no way to loop over the keys of an associative array, it is not possible to print all of the contents.

It would be great if print() supports this. Ideally with an optional format string like printa() has.

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 by locating the print() and printa() entry points and compare how their formatting is handled. Define how print() should traverse associative arrays and how its optional format string should relate to printa(); done means all array contents can be printed with the intended formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
observability-sre, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.