Proposal: friendly list initialization for document or node.
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- developer-experience
Research direction
Start by locating the Document and node construction APIs and reviewing how objects, members, and arrays are currently initialized. Define and validate the C++11 initializer-list behavior shown in the issue, with completion marked by the examples compiling and producing the intended nested values.
Written by the indexing model from the issue text.
Description
Now, initialization is complex as follows:
Document doc;
doc.SetObject();
doc.AddMember(key, value);
Can we use the c++11 initialization list:
Document doc { {"a", "b"}, {"c", false}, {"d", {1, 2, 3}}};
- Dominant language
- C++
- Stars
- 976
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Getting set up
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.
More from bytedance/sonic-cpp
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
请问下,下个release版本有规划了吗Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
对 parseImpl 进行优化Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
sonic 能在 mac 上测试吗Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
U64toa 单元测试用例不通过Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in bytedance/sonic-cpp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
tesseract-ocr/tesseract#4627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
lxqt/lxqt-panel#2492 ·
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
[models/demos/gemma4 dFlash]: _shard_argmax returns a view of a force-freed tensor when rows == 1Opencommunity
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
tenstorrent/tt-metal#57989 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100