Support printing of associative arrays in print()
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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